import java.io.*;
//import java.io.IOException;
public class Main {
public static void main(String[] args) {
BufferedReader br;// = new BufferedReader();
String line;
try {
br = new BufferedReader(new FileReader(".idea/example.txt"));
while((line = br.readLine()) != null){
System.out.println(line);
}
} catch (IOException e) {
e.printStackTrace();
}
//System.out.println("Hello World!");
}
}
'IT칼럼 > JAVA' 카테고리의 다른 글
BigInteger, BigDecimal example (0) | 2018.11.04 |
---|---|
Priority Queue (0) | 2018.11.03 |
StringBuilder example (0) | 2018.11.03 |
StringTokenizer example (0) | 2018.11.03 |
Scanner example (0) | 2018.11.02 |