Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ArrAndLen* readFille()
- {
- ArrAndLen* result = new ArrAndLen();
- string fileName = "about.txt";
- string sAbout;
- ifstream fIn(fileName.c_str());
- if (!fIn.is_open())
- {
- cout << "Файл невозможно открытьn";
- system("pause");
- result->size = 0;
- return result;
- }
- while (!(fIn.eof()))
- {
- getline(fIn, sAbout);
- cout << sAbout << endl;
- }
- fIn.close();
- return result;
Add Comment
Please, Sign In to add comment