I'm working on a little project in which I need to set up random access to lines in a CSV text file. (I can't use a database for this particular project, I have to work with CSV files.)
I have two (2) simple questions:
[1] Is there an existing class or classes that can index the lines in a text file? No need to grow my own if there is something out there I can use...I did some online searching for terms like "java random access text file" or "java indexed text file" but didn't come up with much.
[2] The Javadoc for the RandomAccessFile.readLine method states that: "Each byte is converted into a character by taking the byte's value for the lower eight bits of the character and setting the high eight bits of the character to zero. This method does not, therefore, support the full Unicode character set." What does this mean in a practical sense? Does it mean that I will be limited to the ASCII character set? (I can probably live with this.)
Links:
readLine method RandomAccessFile class Thanks,
Landon
[ February 27, 2008: Message edited by: Landon Blake ]
[ February 27, 2008: Message edited by: Landon Blake ]