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.
Follow the steps,
CFile/QFile/ifstream m_file; m_file.Open(path,Other parameter/mood to open file);
For reading file you have to make buffer or string to save data and you can pass that variable in read() method.