How to read specific patterns with FileReader in Java

102 views Asked by At

I have a text file that has a repeated pattern after line 14, which does not have a fixed length.

The pattern is as follows:

'
String
String
Int

The apostrophe is used to separate each chunk of data, which I am trying to save into a Hashmap for each type (e.g one hashmap for the first line of each block, etc)

What is the best was to check if there is a block of text (is the apostrophe the best?) and then save the next three lines and continue?

0

There are 0 answers