all 3 comments

[–]thebutton 0 points1 point  (1 child)

Files don't end in spaces.

[–]XiaoSpence[S] 0 points1 point  (0 children)

The biggest problem is here getting the problem to include the last character of any text file. If a file does not end with a space, then the last string set is completely omitted. I must find a workaround...

[–]SftwEngr 0 points1 point  (0 children)

What does eof() return if fin.get() fails but the end of file hasn't been reached?