I'm trying to create a little program that will help me disect some .txt files I have. I've tried going about it several different ways but cant seem to get my head around it. Is there a way to create a function using just iostream, fstream, vector, and string #includes to read from a .txt file up to a specific character and return the string to int main?
Well if you mean read up until a certain character per each line, you can just use getline() and give it the second parameter. Otherwise, you could just use a normal getline(), and then use string.find() to see if the character you are looking for exists.