![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Low level file access. More...
#include <FXFile.h>
Public Member Functions | |
| FXFile () | |
| Construct file. | |
| FXFile (FXInputHandle h, FXuint m) | |
| Construct file and attach existing handle h. | |
| FXFile (const FXString &file, FXuint m=FXIO::Reading, FXuint perm=FXIO::AllReadWrite) | |
| Construct and open a file. | |
| virtual FXbool | open (const FXString &file, FXuint m=FXIO::Reading, FXuint perm=FXIO::AllReadWrite) |
| Open file. | |
| virtual FXbool | open (FXInputHandle h, FXuint m) |
| Open device with access mode and handle. | |
| virtual FXbool | isSerial () const |
| Return true if serial access only. | |
| virtual FXlong | position () const |
| Get current file position. | |
| virtual FXlong | position (FXlong offset, FXuint from=FXIO::Begin) |
| Change file position, returning new position from start. | |
| virtual FXival | readBlock (void *data, FXival count) |
| Read block of bytes, returning number of bytes read. | |
| virtual FXival | writeBlock (const void *data, FXival count) |
| Write block of bytes, returning number of bytes written. | |
| virtual FXlong | truncate (FXlong s) |
| Truncate file to size s. | |
| virtual FXbool | flush () |
| Flush to disk. | |
| virtual FXlong | size () |
| Return file size. | |
| virtual FXbool | eof () |
| Test if we're at the end. | |
| virtual FXbool | close () |
| Close file. | |
| virtual | ~FXFile () |
| Destroy. | |
Static Public Member Functions | |
| static FXbool | create (const FXString &file, FXuint perm=FXIO::AllReadWrite) |
| Create new (empty) file. | |
| static FXbool | remove (const FXString &file) |
| Remove file. | |
| static FXbool | rename (const FXString &srcfile, const FXString &dstfile) |
| Rename or move srcfile to dstfile, replacing dstfile if it exists. | |
| static FXbool | link (const FXString &srcfile, const FXString &dstfile) |
| Link file. | |
| static FXString | symlink (const FXString &file) |
| Read symbolic link. | |
| static FXbool | symlink (const FXString &srcfile, const FXString &dstfile) |
| Symbolic link file. | |
| static FXbool | identical (const FXString &file1, const FXString &file2) |
| Return true if files are identical. | |
| static FXbool | copy (const FXString &srcfile, const FXString &dstfile, FXbool overwrite=false) |
| Copy srcfile to dstfile, overwriting dstfile if allowed. | |
| static FXbool | concat (const FXString &srcfile1, const FXString &srcfile2, const FXString &dstfile, FXbool overwrite=false) |
| Concatenate srcfile1 and srcfile2 to dstfile, overwriting dstfile if allowed. | |
| static FXbool | copyFiles (const FXString &srcfile, const FXString &dstfile, FXbool overwrite=false) |
| Recursively copy files or directories from srcfile to dstfile, overwriting dstfile if allowed. | |
| static FXbool | moveFiles (const FXString &srcfile, const FXString &dstfile, FXbool overwrite=false) |
| Recursively copy or move files or directories from srcfile to dstfile, overwriting dstfile if allowed. | |
| static FXbool | removeFiles (const FXString &path, FXbool recursive=false) |
| Recursively remove file or directory, recurse if allowed. | |
Low level file access.
|
|