intro.bbdoc 877 B

12345678910111213141516171819
  1. The BlitzMax filesystem module contains commands to perform operations on the computer's
  2. files and directories.
  3. #OpenFile, #ReadFile and #WriteFile return a stream object for reading and or writing data
  4. to files.
  5. Directories can be examined file by file using a combination of the
  6. #ReadDir, #NextFile and #CloseDir commands, or #LoadDir can be used to read the file names
  7. of a directory into a string array.
  8. File properties can be examined with the #FileType, #FileTime, #FileSize and #FileMode commands.
  9. Files and directories (folders) can be created and deleted with the #CreateFile, #CreateDir
  10. #DeleteFile and #DeleteDir commands.
  11. Finally, the FileSystem module contains various utility functions for handling file paths
  12. in a system independent manner. These commands include #RealPath, #StripDir, #StripExt,
  13. #StripAll, #ExtractDir and #ExtractExt.