Closes file. Called automatically by TextFile destructor.
| 324 | |
| 325 | //! Closes file. Called automatically by TextFile destructor. |
| 326 | void TextFile::Close() { |
| 327 | if(p_stream.is_open()) { |
| 328 | p_stream.flush(); |
| 329 | p_stream.close(); |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | // vector array |
| 334 | void TextFile::GetFile(std::vector<QString> &lines, const int &maxLinesToRead, |