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