Guest User

Untitled

a guest
Aug 15th, 2018
64
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Does fstream open have trouble with larger files?
  2. fstream f;
  3. f.open("/usr/share/dict/words");
  4.  
  5. // why is this returning false?
  6. bool open = f.is_open();
  7.  
  8. f.open("/usr/share/dict/words", fstream::in);
  9.  
  10. void open (const char *filename,
  11. ios_base::openmode mode = ios_base::in | ios_base::out );
  12.  
  13. f.open("/usr/share/dict/words", ios_base::in);
RAW Paste Data