Using RandomAccessFile Class Lab
Write a method to delete a record using RandomAccessFile class. Look at Using RandomAccessFile Class Example. Hints: To delete a record from a file means to shrink the file. How to do it ? Find the record position. Then replace the record to be deleted by the next record, and so on...
Back to I/O Classes Overview