Hi,
If there is a RandomAccessFile, in which i do not know the data types, but i know that the 5th column contains a String, how can i read the string and bypass the other 4 columns?
Printable View
Hi,
If there is a RandomAccessFile, in which i do not know the data types, but i know that the 5th column contains a String, how can i read the string and bypass the other 4 columns?
You probably can guess how to do this ... just "discard" the first four parts of each line/record then use the fifth ... break each record into tokens using the Scanner class with whitespace as the delimiter, then use four "next()" to discard the four records, then use the fifth "next()".