posted 16 years ago
Hi all,
I have a cituation here in my project, where i am wring a parser for the text file of size ranging between 100 - 700MB. All the records inside are seperated with Hex characters ; start of the record - "\u0002" ; end of the record - "\u0003". In one of the postings i found Scanner is very useful for not to load the whole data into memory, meaning i can read the file record by record. The file will have 1000's of records each record seperated by the Hex characters mentioned above.
Could any one please help me with a piece of code to read the input file record by record ( i already wrote a parser for parsing individual records, which are considerably small in size - can afford to store in memory) without loading whole data into memory?
Quick reply is much appreciated.
regards,
Jay.