Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) File I/O

 

File I/O is working with files, like saving, reading, copying and searching.

 

 

 

 

 

File I/O STL functions and data types

 

 

 

 

 

 

File I/O code snippets

 

  1. Boost   boost::filesystem::copy_file, copy a file
  2. BoostQtSTLVCL Check if a file exists, FileExists
  3. Boost   Copy a file, boost::filesystem::copy_file
  4. BoostSTLVCL Copy a file, CopyFile
  5. BoostSTLVCL CopyFile, copy a file
  6. STL   DeleteFile, delete a file
  7. STL   Delete a file, DeleteFile
  8. BoostQtSTLVCL FileExists, check if a file exists
  9. VCL   FileToStringList, read a file in a TStringList
  10. STL   FileToVector, read a file in a std::vector
  11. BoostSTL  Get a file's path, GetPath
  12. Boost   Get all C++ filenames in a folder, GetCppFilesInFolder
  13. BoostQt  Get all filenames in a folder, GetFilesInFolder
  14. STL   Get the extension of a filename, GetExtension
  15. BoostSTL  Get the name of the folder your application runs in, GetCurrentFolder
  16. Boost   GetCppFilesInFolder, get all C++ filenames in a folder
  17. BoostSTL  GetCurrentFolder, get the name of the folder your application runs in
  18. Qt   Get the names of the folders in a folder, GetFoldersInFolder
  19. STL   GetExtension, get the extension of a filename
  20. BoostQt  GetFilesInFolder, get all filenames in a folder
  21. Qt   GetFoldersInFolder, get all the names of the folders in a folder
  22. BoostSTL  GetPath, get a file's path
  23. STL   ReadDoubleFromFile, read a double from file
  24. STL   Read a double from file, ReadDoubleFromFile
  25. STL   Read a file in a std::vector, FileToVector
  26. VCL   Read a file in a TStringList, FileToStringList
  27. STL   Remove the extension of a filename, RemoveExtension
  28. STL   RemoveExtension, remove the extension of a filename
  29. STL   Run another program and use its output
  30. STL   Save a container to file, SaveContainer
  31. STL   SaveContainer, save a container to file

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict