User Tools

Site Tools


cplusplus:file_processing_examples

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
cplusplus:file_processing_examples [2019/02/11 19:13] – [Filenames must be c_str in pre-C++11] mithatcplusplus:file_processing_examples [2019/02/11 19:15] – [Using filenames] mithat
Line 80: Line 80:
  
     outfile.open(filename);            // associate file with file pointer object     outfile.open(filename);            // associate file with file pointer object
-    //outfile.open(filename.cstr());   // convert filename to C-string if pre C++11+    //outfile.open(filename.c_str());   // convert filename to C-string if pre C++11
  
     if (!outfile)     if (!outfile)
cplusplus/file_processing_examples.txt · Last modified: 2019/02/11 19:17 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki