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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BufferedFileReader read from beginning again.

Status
Not open for further replies.

mashadt

Instructor
Apr 23, 2005
33
ZA
When using BufferedFileReader to read records from a file

BufferedReader inFile = new BufferedReader(new FileReader(FILE_NAME));


//loop through the array
for(int counter = 0; counter < array.length; counter ++)
{

dataLine = inFile.readLine();

As it reads through the file, I need to be able to occasionaly send it back to start reading at the beginning again, or part way in. How do I do that?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top