<<< BufferedReader example: reading text file | Index | RandomAccessFile implements DataOutput and DataInput interfaces >>> |
How to create a read-write RandomAccessFile object
RandomAccessFile myFile = new RandomAccessFile("myfile.dat", "rw");
How to create a read-only RandomAccessFile object
RandomAccessFile myFile = new RandomAccessFile("myfile.dat", "r");
How to create a synchronized read-write object
RandomAccessFile myFile = new RandomAccessFile("myfile.dat", "rws");
<<< BufferedReader example: reading text file | Index | RandomAccessFile implements DataOutput and DataInput interfaces >>> |