sprint 1-alpha
|
#include <file.h>
Inherits if_copiable<!bManaged >.
Public Member Functions | |
file (HANDLE h=INVALID_HANDLE_VALUE) | |
file (const char *filename, flag_t mode) | |
bool | good () |
test if file is correctly open | |
bool | OpenForWrite (LPCWSTR lpszFileName) |
bool | OpenForWrite (LPCSTR lpszFileName) |
bool | OpenForRead (LPCWSTR lpszFileName) |
bool | OpenForRead (LPCSTR lpszFileName) |
bool | OpenForBothReadWrite (LPCWSTR lpszFileName) |
bool | OpenForBothReadWrite (LPCSTR lpszFileName) |
bool | CreateForBothReadWrite (LPCWSTR lpszFileName) |
bool | CreateForBothReadWrite (LPCSTR lpszFileName) |
bool | CreateForWrite (LPCWSTR lpszFileName) |
bool | CreateForWrite (LPCSTR lpszFileName) |
bool | OpenForAppend (LPCWSTR lpszFileName) |
bool | OpenForAppend (LPCSTR lpszFileName) |
void | close () |
sprint::io::file_size_t | seek (file_size_t offset, sprint::io::seek_t type) |
sprint::io::state_t | state () |
io::file_size_t | length () const |
int | write (LPCVOID lpBuffer, UINT uBufferLen) const |
int | read (LPVOID lpBuffer, UINT uBufferLen) const |
void | flush () |
unsigned long | tell () const |
unsigned long | SeekFromBegin (UINT uPos) const |
unsigned long | Skip (UINT uPos) const |
BOOL | Rewind () const |
BOOL | trunc () const |
int | get () const |
int | put (char c) |
BOOL | SetFileTime (const FILETIME *lpCreationTime, const FILETIME *lpLastAccessTime, const FILETIME *lpLastWriteTime) |
BOOL | GetFileTime (FILETIME *lpCreationTime, FILETIME *lpLastAccessTime, FILETIME *lpLastWriteTime) |
A File Wrapper
bManaged | to close the file at the end |