I search the content in a file line by line using a while loop until I find the String 'MATCH'. But when in another function I need to use BufferReader again, will it refer to the end of file or start from the very beginning of the file?
Public String method1(String match){
String line;
while((line = bufferReader.readLine()) != null){
if (line = match)
return line;
}
}
Public String method2.......
When implementing method 2, will bufferReader point to the place when line = match? Or bufferReader will be re-initialised to the beginning of the file?