I have a text file that in some places have newlines in the middle.
My name is Sam.
I am a novice programmer.
I go to school
I use getline() to read through the entire file, and then I send it to a function to tokenize it into sentences that end in periods. My problem is that if the sentence doesn't end in a period, but rather a newline (like I go to school), it still stops rather than going on to read "I go to school in Michigan."
I know that the third parameter of a getline() function can be '\n' but for some reason that isn't working.
Any suggestions would be helpful!