21 #ifndef __EDELIB_FILE_H__
22 #define __EDELIB_FILE_H__
98 File(
const char* n,
int m);
112 bool open(
const char* fname,
int mode =
FIO_READ);
127 const char* name(
void)
const;
151 int read(
void* buff,
int typesz,
int buffsz);
166 int readline(
char* buff,
int buffsz);
183 int write(
const void* buff,
int typesz,
int buffsz);
192 int write(
const char* buff,
unsigned int buffsz);
197 int write(
const char* buff);
204 int printf(
const char* fmt, ...);
212 EDELIB_API
bool file_exists(
const char* name) EDELIB_DEPRECATED;
219 EDELIB_API
bool file_readable(
const char* name) EDELIB_DEPRECATED;
226 EDELIB_API
bool file_writeable(
const char* name) EDELIB_DEPRECATED;
266 EDELIB_API
bool file_copy(
const char* src,
const char* dest,
bool exact =
false);
275 EDELIB_API
bool file_rename(
const char* from,
const char* to);
294 EDELIB_API
String file_path(
const char* fname,
bool skip_link =
false);
no space left on device
Definition: File.h:38
open file in read-only mode
Definition: File.h:47
truncate currently opened file
Definition: File.h:51
no such file
Definition: File.h:36
bool file_readable(const char *name)
bool file_rename(const char *from, const char *to)
bool file_executable(const char *name)
bool file_remove(const char *name)
too many opened files
Definition: File.h:37
FileIOMode
Open and write flags for File class.
Definition: File.h:46
bool file_writeable(const char *name)
bool file_copy(const char *src, const char *dest, bool exact=false)
A system file io stream.
Definition: File.h:74
bool file_exists(const char *name)
open file in append mode
Definition: File.h:49
successful operation
Definition: File.h:34
String file_path(const char *fname, bool skip_link=false)
permission denied
Definition: File.h:35
A (relatively simple) string implementation.
Definition: String.h:82
FileErrors
Error codes returned by File class.
Definition: File.h:33
bad flag
Definition: File.h:39