#include <gmlfile.h>
Methods | |
bool | Open (const char *mode) |
Opening of file according to mode. The list of allowed modes:. | |
bool | Opened () const |
True if file was previously opened. | |
bool | Close () |
Close the file. | |
bool | ReadStr (String &out_buff, int len_buff, bool *out_nl=NULL) |
bool | ReadStr (char *out_buff, int len_buff, bool *out_nl=NULL) |
bool | ReadStr (String &out_buff) |
void | Read (BYTE *out_buff, int len_buff, int &out_size) |
void | WriteStr (const String &str) |
void | WriteStr (const char *out_buff,...) |
void | Write (const BYTE *buff, int size) |
void | Flush () |
bool | Remove () |
bool | Rename (const PathString &new_file_name) |
bool | IsError () |
PathString | PathName () const |
int | Printf (const char *format,...) |
bool | Seek (long offset) |
bool | SeekCur (long offset) |
bool | SeekEnd (long offset) |
long | FilePos () const |
Gets current file offset. | |
long | FileSize () const |
Returns the size of the file in bytes. | |
bool | Copy (const PathString &name_from, const PathString &name_to) |
enum | { MODE_TEXT, MODE_BINARY } |
enum | { MODE_READ, MODE_WRITE, MODE_READ_WRITE } |
FILE * | fd |
int | mode_tb |
int | mode_rw |
Public Member Functions | |
Constructors | |
File (const PathString &full_pathname) | |
Sets a full path to the file only. | |
File (const File &file) | |
Copy constructor. | |
~File () | |
Destructor. File will be closed if it was opened. | |
Protected Types |
|
Copy constructor. File may not be opened. Debug version asserts if this condition is violated. |
|
Opening of file according to mode. The list of allowed modes:.
|
|
Close the file.
|