5#pragma warning ( disable : 4786 )
111 if ( !
in.isopened() )
113 size_t len =
in.length();
114 s.resize (
len + 1 );
115 if ( !
in.read ( &
s[0],
len ) )
125 if ( !
out.isopened() )
127 out.write (
s.c_str(),
s.size() );
bool next_line(std::string &line, bool strip_crlf)
static bool SaveFromString(const char *filename, const std::string &s, bool binary)
static bool LoadIntoString(std::string &s, const char *filename)
std::string getline(bool strip_crlf=false)
bool enum_lines(bool(*callback)(const std::string &line, int line_number, long lparam), long lparam, bool strip_crlf)
bool open(const char *filename, const char *mode)
int const char const *const int const line_number
int CDECL fclose(FILE *file)
char *CDECL fgets(char *s, int size, FILE *file)
FILE *CDECL fopen(const char *path, const char *mode)
__msvcrt_long CDECL _filelength(int fd)
int CDECL _fileno(FILE *file)
_ACRTIMP char *__cdecl strchr(const char *, int)
_ACRTIMP size_t __cdecl strlen(const char *)
_ACRTIMP char *__cdecl strpbrk(const char *, const char *)
static char * file_stat(DOS_FILE *file)
GLenum GLuint GLenum GLsizei const GLchar * buf
const GLuint GLenum const GLvoid * binary
static IPrintDialogCallback callback
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out