- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuffred.java
More file actions
Latest commit
26 lines (23 loc) · 553 Bytes
/
Copy pathBuffred.java
File metadata and controls
26 lines (23 loc) · 553 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
packagesepidsal;
importjava.io.*;
/**
*
* @author Sepideh Saljooghi
*/
publicclassBuffred {
publicstaticvoidmain(Stringargs[]){
try{
FileReaderreader = newFileReader("C:\\sepidsal.txt");
BufferedReaderbfr= newBufferedReader(reader);
inti;
while((i=bfr.read())!=-1){
System.out.print((char)i);
}
bfr.close();
reader.close();
}
catch(Exceptione){
System.out.print(e);
}
}
}