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?
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?