Definition: | atom filesize = get_file_size(string filename) |
Description: |
Get the size of a file in bytes.
filename: the name of the file to query. Returns an atom, the file size, or -1 if file is not found or a directory. |
Comments: |
This function does not compute the total size for a directory, and returns 0 instead.
Both forwardslash ('/') and backslash ('\\') are handled for all platforms. |
Example: |
?get_file_size("C:/Program Files (x86)/Phix/builtins/pfile.e") |
See Also: | dir |
