The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Reset File Pointer in RAF

Posted by TS on March 05, 2001 at 4:00 AM

> Hi anyone,
> I have been seeking ways to reset a file created using RandomAcessFile but have been unsuccessful
> so far. Would be happy for your sugesstions.
> Thanks for your help!
--------------------------------------------------------

try the "seek(long i)" method to reset.The value of i should be 0 or 1 (check out).This does the job for U.





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us