The another program reads the characters from a file using the readByte(
) method.
import java.io.*;
|
Output of the Program:
| C:\nisha>java ReadAccessFile Enter File name : Filterfile.txt Length: 30 ??t h i s i s a f i l e C:\nisha> |
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Using a Random Access File in Java View All Comments
Post your Comment