Welcome to JavaRanch
You might have done better to start a new
thread rather than reopening an
old topic.
You will have to get details of the format of the file from whoever supplied it. Is there anything which starts off, or finishes, a record, which is distinguishable from anything else. If there is, can you match it is a regular expression and use a Scanner to read the file?
Is there a record number which increases from record to record?
Are the records in the file of a uniform length? In which case can you read a certain number of characters and call them a line?
I am sure other people will be able to suggest other strategies for parsing your file. If you can't get any of them to work, can you tell the file supplier off for giving you an impossible task?
I would agree with previous comments that it is better to try handling the file one record at a time than trying to handle the whole thing.