Package java.io
Class RandomAccessFile
RandomAccessFile(File file, String mode)
Throws:
RandomAccessFile(String name, String mode)
Throws:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Important Note
Make sure that any steam accessing a file is closed before a new stream for the same file is created.
constructor RandomAccessFile(File file, String mode):
Creates a random access file stream to read from, and optionally write to, the file specified by the File argument. A new FileDescriptor object is created to represent this file connection. RandomAccessFile supports the notion of a file pointer. The file pointer indicates the current location in the file. When the file is first created, the file pointer is set to 0, indicating the beginning of the file.
The mode argument must either be "r" or "rw" for read or read and write access.
constructor RandomAccessFile(String name, String mode):
Creates a random access file stream to read from, and optionally write to, a file with the specified name. A new FileDescriptor object is created to represent the connection to the file. RandomAccessFile supports the notion of a file pointer. The file pointer indicates the current location in the file. When the file is first created, the file pointer is set to 0, indicating the beginning of the file.
The mode argument must either be "r" or "rw" for read or read and write access.