- 论坛徽章:
- 0
|
I have a TXT file with contents named test.txt as follow:
This is a test
444444
333333
good by!
I defined a ifstream variable named inFile and intialized with a string "test.txt", and I defined string outString and an ofstream variable named outFile with "output.txt" for initializing.I used the statements for coping the content of file test.txt into file output.txt as follow:
inFile >;>; outString;
outFile << outString;
but the content of the output.txt displayed as follow:
This is a test
Why? I need help.
Thank you! |
|