This is what I was using to display the first word in a file 'test.txt'
My question is: Is it possible and how to save all the content as a string or to display all of the content and not just one word.Code:char str[10]; ifstream file ( "C:\\test.txt" ); file >> str; cout << str;
Thanks.