I am reading in multiple files in with millions of lines and I am creating a list of all line numbers that have a specific issue. For example if a specific field is left bla
StringBuilder serves your purpose so stick with that, if you ever need the line numbers you can easily change the code then.