I want to open a file for reading, the C++ way. I need to be able to do it for:
text files, which would involve some sort of read line function.
#include #include using namespace std; int main () { ofstream file; file.open ("codebind.txt"); file << "Please writr this text to a file.\n this text is written using C++\n"; file.close(); return 0; }