daily pastebin goal
55%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top