Guest User

Untitled

a guest
Apr 16th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. ArrAndLen* readFille()
  2. {
  3. ArrAndLen* result = new ArrAndLen();
  4. string fileName = "about.txt";
  5. string sAbout;
  6. ifstream fIn(fileName.c_str());
  7. if (!fIn.is_open())
  8. {
  9. cout << "Файл невозможно открытьn";
  10. system("pause");
  11. result->size = 0;
  12. return result;
  13. }
  14.  
  15. while (!(fIn.eof()))
  16. {
  17. getline(fIn, sAbout);
  18. cout << sAbout << endl;
  19.  
  20. }
  21. fIn.close();
  22. return result;
Add Comment
Please, Sign In to add comment