37 int fopen(
const char* filename,
const char* mode,
bool cache =
false,
const char* filename_ex =
"" );
44 void fclose(
int id,
const char* mode =
"r");
58 const char*
fgets(
int id);
65 void fprintf(
int id,
const char* str );
73 long fsize(
int id,
const char* mode =
"r");
81 long fpos(
int id,
const char* mode =
"r");
89 void fseek(
int id,
int finalPos,
const char* mode =
"r");
96 bool fexist(
const char* filename );
115 bool fadd(
const char* filename,
const char* mode,
bool cache =
true,
const char* filename_ex =
"",
const char* archive_type =
"zip",
const char* password =
"");
126 bool faddzip(
const char* zipfilename,
const const char* password =
"");
134 bool fremove(
const char* filename);
150 const char*
ftostring(
const char* filename,
const char* encode =
"utf8");
157 bool fdel(
const char* filename);
165 const char*
fread(
int id,
int len);
174 const char*
freadf(
const char* filename,
int seekpos,
int len);
182 const char*
fgetsf(
const char* filename,
int line_nb);
189 int fsizef(
const char* filename);
const char * fread(int id, int len)
read string start from current position until len count.
const char * ftointernalstorage(const char *filename)
bool fexist(const char *filename)
is this file exist on drive
void fprintf(int id, const char *str)
write a string into a file
long fsize(int id, const char *mode="r")
get file size
bool feof(int id)
is current position on file at the end
int fopen(const char *filename, const char *mode, bool cache=false, const char *filename_ex="")
create a new file or to open an existing file.
void fclose(int id, const char *mode="r")
close a file
long fpos(int id, const char *mode="r")
get current position on a file
void fseek(int id, int finalPos, const char *mode="r")
Changes position in file.
const char * ftostring(const char *filename, const char *encode="utf8")
Open file and allocate buffer to string, no drop file pointer.
bool fadd(const char *filename, const char *mode, bool cache=true, const char *filename_ex="", const char *archive_type="zip", const char *password="")
const char * freadf(const char *filename, int seekpos, int len)
read file start from seekpos until len count.
int fsizef(const char *filename)
get file size
bool fdel(const char *filename)
delete file from disk.
const char * fgetsf(const char *filename, int line_nb)
read string on a file until found '\n' and at line number count.
const char * fgets(int id)
read string on a file until found '\n' or eof
bool faddzip(const char *zipfilename, const const char *password="")
bool fremove(const char *filename)