<<< RandomAccessFile modes | Index | RandomAccessFile example: writing binary file >>> |
Class java.io.RandomAccessFile implements two interfaces:
Methods of the RandomAccessFile class for input and output
Method Throws --------------- ------------- seek(long) IOException length() IOException setLength(long) IOException close() IOException
With setLength() the length of the file can be changed, resulting in the content to be truncated or exatended.
<<< RandomAccessFile modes | Index | RandomAccessFile example: writing binary file >>> |