func_file_filesize.rst 475 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. .. _func_file_filesize:
  2. ========
  3. FileSize
  4. ========
  5. FileSize -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. FileSize( path$ )
  10. Get file size
  11. Parameters
  12. ==========
  13. Return Values
  14. =============
  15. Size, in bytes, of the file at @path, or -1 if the file does not exist
  16. Examples
  17. ========
  18. .. code-block:: blitzmax
  19. ' filesize.bmx
  20. ' the following prints the size of this source file in bytes
  21. print filesize("filesize.bmx")
  22. See Also
  23. ========