Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RandomAccessFile - Deleting File contents??

Status
Not open for further replies.

Stevoie

Programmer
Jun 7, 2001
68
IE
I want to be able to jump to a position in a text file and delete a specificed number of chars from it.

Having major problems getting this to work, any help would be great.
 
You can't delete the chars , per se, you can only write over them. You move the file pointer via:

RandomAccessFile.seek(long offset)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top