Biblioteca Java - Blame information for rev 36
Subversion Repositories:
Rev | Author | Line No. | Line |
---|---|---|---|
36 | mihai | 1 | import java.io.*; |
2 | public class Citire { | ||
3 | |||
4 | |||
5 | public static void main(String[] args) { | ||
6 | try { | ||
7 | |||
8 | //BufferedReader in = new BufferedReader( | ||
9 | // new InputStreamReader(System.in)); | ||
10 | |||
11 | BufferedReader f = new BufferedReader( | ||
12 | new FileReader("./src/Citire.java"));//ispdemo.txt")); | ||
13 | |||
14 | String linie = f.readLine(); | ||
15 | while(linie!=null){ | ||
16 | System.out.println(linie); | ||
17 | linie = f.readLine(); | ||
18 | } | ||
19 | |||
20 | } catch (FileNotFoundException e) { | ||
21 | e.printStackTrace(); | ||
22 | } catch (IOException e){ | ||
23 | e.printStackTrace(); | ||
24 | } | ||
25 | |||
26 | } | ||
27 | |||
28 | } |