R
r.emmerink
Hi,
I am quite new to InputStream. I made a function that reads data from a
file. The function gets an InputStream passed by
public int readStudents(BufferedReader ins) {
and uses (several times)
String regel = ins.readLine();
to read lines. Then I decide how many records I can find in the file
from the contents read. Then I want to read the data of the records,
but I am at the end of the file since I scanned for the records before.
How can I jump to the beginning so I can scan the file again?
Thanks in advance,
Roderik
I am quite new to InputStream. I made a function that reads data from a
file. The function gets an InputStream passed by
public int readStudents(BufferedReader ins) {
and uses (several times)
String regel = ins.readLine();
to read lines. Then I decide how many records I can find in the file
from the contents read. Then I want to read the data of the records,
but I am at the end of the file since I scanned for the records before.
How can I jump to the beginning so I can scan the file again?
Thanks in advance,
Roderik