Added wxFile::ReadAll() for consistency with wxFFile::ReadAll().
Make it possible to use wxFFile and wxFile interchangeably for simply reading the entire contents of the file as a string. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
#include "wx/string.h"
|
||||
#include "wx/filefn.h"
|
||||
#include "wx/strconv.h"
|
||||
#include "wx/convauto.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// class wxFile: raw file IO
|
||||
@@ -70,6 +70,8 @@ public:
|
||||
int fd() const { return m_fd; }
|
||||
|
||||
// read/write (unbuffered)
|
||||
// read all data from the file into a string (useful for text files)
|
||||
bool ReadAll(wxString *str, const wxMBConv& conv = wxConvAuto());
|
||||
// returns number of bytes read or wxInvalidOffset on error
|
||||
ssize_t Read(void *pBuf, size_t nCount);
|
||||
// returns the number of bytes written
|
||||
|
Reference in New Issue
Block a user