반응형

가끔 찾아보기가 귀찮아서.. ㅡㅡ;

  1. try {
  2.       BufferedReader in = new BufferedReader(new FileReader("src/input"));
  3.       String s;
  4.       while ((s = in.readLine()) != null) {
  5.         System.out.println(s);
  6.       }
  7.       in.close();
  8.     } catch (IOException e) {
  9.         System.err.println(e);
  10.         System.exit(1);
  11.     }
  12. }


728x90
반응형

'Development > Java' 카테고리의 다른 글

Deep Copy vs Shallow Copy  (0) 2013.02.12
객체에는 메서드가 포함되지 않는다?  (0) 2013.02.12
[Spring]Spring Annotation  (0) 2012.08.01
[Spring]SpEL(Spring Expression Language)  (0) 2012.07.31
[Spring]Autowiring  (0) 2012.05.03

+ Recent posts