X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/70a7bd90f9bdafd5ffbc89fd0b79b9e900d7dd22..8bce5cda15510afbe058d14fc667f47e75305743:/include/wx/ffile.h diff --git a/include/wx/ffile.h b/include/wx/ffile.h index 0236e154bf..6b63bded48 100644 --- a/include/wx/ffile.h +++ b/include/wx/ffile.h @@ -60,7 +60,7 @@ public: // 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 size_t Read(void *pBuf, size_t nCount); @@ -96,6 +96,8 @@ public: 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(); }