Course List:
http://www.c-jump.com/bcc/
Random Access Files
- Sequential vs. Random Access Files
- Sequential vs. Random Access Files, cont.
- FileChannel class
- ByteBuffer
- Example: FileChannel and ByteBuffer classes
- BufferedWriter example: writing sequential records
- FileChannel example: writing one random record
- FileChannel example: writing multiple random records
- Reading existing random access files
- BufferedReader example: reading random access file sequentially
- FileChannel example: accessing a random access file randomly
- RandomAccessFile class
- RandomAccessFile vs. FileChannel vs. BufferedReader
- BufferedReader example: reading text file
- RandomAccessFile modes
- RandomAccessFile implements DataOutput and DataInput interfaces
- RandomAccessFile example: writing binary file
- RandomAccessFile example: reading binary file
- RandomAccessFile example: fixed-length string I/O