- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReader.java
More file actions
Latest commit
24 lines (22 loc) · 504 Bytes
/
Copy pathReader.java
File metadata and controls
24 lines (22 loc) · 504 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
packagesepidsal;
importjava.io.*;
/**
*
* @author Sepideh Saljooghi
*/
publicclassReader {
publicstaticvoidmain(Stringargs[]){
try{
FileReaderreader = newFileReader("C:\\sepidsal.txt");
intdata = reader.read();
while(data!=-1){
System.out.print((char)data);
data = reader.read();
}
reader.close();
}
catch(Exceptione){
System.out.print(e);
}
}
}