Friday, May 30, 2003 05:24 AM
If you are just reading and processing a file sequentially, then you don't have a problem.
BufferedReader can wrap a FileReader object and you can read a line at a time (depending upon how the file is delimited).
If you need to read it randomly, RandomAccessFile allows you to create and access a random access file, set record length and a bunch of Random access functions.
The nice thing is that BufferedReader, FileReader and RandomAccessFile (all in the java.io package) keep track of the file pointer for you (if you keep the same Object instance from call to call). Take a look at the JavaDocs for these; and it should help in figuring out how to process the file.