file position indicator
1 posts in topic
Flat View  Flat View

Posted By:   Haizhu_Liu
Posted On:   Thursday, January 31, 2002 10:10 AM

How to set and fetch the file position indicator in Java? (version 1.3 or previous)

Please use html tags to format code blocks.

Re: file position indicator

Posted By:   Christopher_Schultz  
Posted On:   Friday, February 1, 2002 05:46 AM

Uhh... that depends on how you are accessing the file. You can mark a position in an InputStream or a Reader, and then reset the stream to that position, but that's not really what you want.

You want to use a RandomAccessFile, which has methods like getFilePointer and seek, which are like ftell and fseek from the standard C library.

About | Sitemap | Contact