Java BufferedReader back to the top of a text file?
The Buffered readers are meant to read a file sequentially. What you are looking for is the java.io.RandomAccessFile, and then you can use seek() to take you to where you want in the file. The random access reader is implemented like so: try{ String fileName = “c:/myraffile.txt”; File file = new File(fileName); RandomAccessFile raf = … Read more