Hi this doens't LINK. anyone could explain me the error? thanksQt Code:
class File { private: std::fstream file; ............................... public: std::fstream open_file(int); } std::fstream File::open_file() { file.open(file_name.c_str(), std::ios_base::in); //read only return file; } int readFile(File& f) { std::fstream ff = f.open_file(); //EDIT if (ff) { //EDIT : if I put if (!f.open_file()) is always 0 // I need check if file exists }To copy to clipboard, switch view to plain text mode
Bookmarks