Hi,
This is regard to win32 console c++.
I would like to read an input from a text file, process it, then print it back to the screen, in the same format that was in the file originally.
Example, In the text file I have something like this,
----------------------------------
Hi,
My name is joe. Nice to meet you.
Your friend,
joe.
----------------------------------
After reading the text from the input file, into a variable, the spaces and new lines are lost.
How do I preserve this? I hope you folks understand what im asking. Thanks in advance.
This is regard to win32 console c++.
I would like to read an input from a text file, process it, then print it back to the screen, in the same format that was in the file originally.
Example, In the text file I have something like this,
----------------------------------
Hi,
My name is joe. Nice to meet you.
Your friend,
joe.
----------------------------------
After reading the text from the input file, into a variable, the spaces and new lines are lost.
How do I preserve this? I hope you folks understand what im asking. Thanks in advance.