Biblioteca Java - Rev 36
Subversion Repositories:
import java.io.*;
public class Citire {
public static void main(String[] args) {
try {
//BufferedReader in = new BufferedReader(
// new InputStreamReader(System.in));
BufferedReader f = new BufferedReader(
new FileReader("./src/Citire.java"));//ispdemo.txt"));
String linie = f.readLine();
while(linie!=null){
System.out.println(linie);
linie = f.readLine();
}
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e){
e.printStackTrace();
}
}
}
public class Citire {
public static void main(String[] args) {
try {
//BufferedReader in = new BufferedReader(
// new InputStreamReader(System.in));
BufferedReader f = new BufferedReader(
new FileReader("./src/Citire.java"));//ispdemo.txt"));
String linie = f.readLine();
while(linie!=null){
System.out.println(linie);
linie = f.readLine();
}
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e){
e.printStackTrace();
}
}
}