Fission and I had quite a long talk about this and we couldn't figure out why the code was not working. It builds with no errors but when I run it I get this. I continually built it after suggested changes, but each time it was just blank when I ran it.

The catch here is to read each line from the input.txt file and then print it out. Here's the data from the input.txt file:
Following spoiler shows the code that should have printed out the contents above, but I got nothing.
Of course later on I want to read the characters after the : symbol which I assume can be done by changing the while loop to
while (getline(in, data, ':'))
But right now nothing is getting stored into the data string variable.

The catch here is to read each line from the input.txt file and then print it out. Here's the data from the input.txt file:
Following spoiler shows the code that should have printed out the contents above, but I got nothing.
Of course later on I want to read the characters after the : symbol which I assume can be done by changing the while loop to
while (getline(in, data, ':'))
But right now nothing is getting stored into the data string variable.


Comment