in reply to Re: How do I backtrack while reading a file line-by-line?
in thread How do I backtrack while reading a file line-by-line?

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.

Thanks anyway tho.
Matt

  • Comment on Re^2: How do I backtrack while reading a file line-by-line?