Writing and Reading files in C++. Given that outFile has been defined with ofstream, which statement will write the data to a file?
a. cout(outFile) << " Hello Student";
b. cout << outFile << "Hello Student";
c. outFile << "Hello Student";
d. outFile -> "Hello Student";
No comments:
Post a Comment