objectDisorientedProgrammer / Quasar2

An organization and memory aid program.
MIT License
1 stars 0 forks source link

Write parser for database file #54

Closed objectDisorientedProgrammer closed 4 years ago

objectDisorientedProgrammer commented 4 years ago

I was trying to make life easy and use the .split() method for strings: String[] tokens = line.split(Quasar.sep);. I have now realized that it will not work for the way the data is stored since fields are not required to be populated and .split() does not return whitespace strings.

Will need to write a custom parser or regex which does return empty/whitespace fields.