This program reads the bytes from file and display it to the user.
The another program use DataInputStreams for reading textual input line by line with an appropriate BufferedReader.
import java.io.*;
|
Output of the Program:
| C:\nisha>javac FileRead.java
C:\nisha>java FileRead |
|
Recommend the tutorial |



Ask Questions? Discuss: Java read file line by line - Java Tutorial View All Comments
Post your Comment