Unfortunately, I am reading in files that contain genome data, at the lines starting with '>' correspond to the start of a new chromosome. So, a ~500 Mb file will contain less than 50 lines starting with '>'. So, reading everything inbetween them into the buffer almost defeats the purpose of the buffer itself.