I am trying to understand why when I use getline to parse with '\t' it ignores '\n'. I've looked in my books and here and the internet. Can't figure this out. So my file is multi-line tab delimited string file. For each line, there is no tab in first position or the last position, which I believe is standard for text files. I am trying to put the substring into a vector. So getline below gives me the entire line, which I can the cut up using tab. Using getline that is commented out causes the last piece of data in, say line 0, to be included with the first data of line 1. Is there a way to get around this with getline, or do I need to add more code to parse the resulting string?
Thank you. I've settled on the approach you suggest, but I was just thinking I was missing something and that perhaps I could get it to consider two delimiters.