/////////////////////////////////////////////////////////////////////////////
-// Name: file.h
+// Name: wx/file.h
// Purpose: wxFile - encapsulates low-level "file descriptor"
// wxTempFile - safely replace the old file
// Author: Vadim Zeitlin
#include "wx/string.h"
#include "wx/filefn.h"
-#include "wx/strconv.h"
+#include "wx/convauto.h"
// ----------------------------------------------------------------------------
// class wxFile: raw file IO
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