// read/write (unbuffered)
// read all data from the file into a string (useful for text files)
- bool ReadAll(wxString *str);
+ bool ReadAll(wxString *str, wxMBConv& conv = wxConvUTF8);
// returns number of bytes read - use Eof() and Error() to see if an error
- // occured or not
+ // occurred or not
size_t Read(void *pBuf, size_t nCount);
// returns the number of bytes written
size_t Write(const void *pBuf, size_t nCount);
bool IsOpened() const { return m_fp != NULL; }
// is end of file reached?
bool Eof() const { return feof(m_fp) != 0; }
- // is an error occured?
+ // has an error occurred?
bool Error() const { return ferror(m_fp) != 0; }
// get the file name
const wxString& GetName() const { return m_name; }
+ // type such as disk or pipe
+ wxFileKind GetKind() const { return wxGetFileKind(m_fp); }
// dtor closes the file if opened
~wxFFile() { Close(); }