ARSA Language  2.8
(Encryption, GPU and Web 3.0)
file.h
Go to the documentation of this file.
1 
26 
37 int fopen(const char* filename, const char* mode, bool cache = false, const char* filename_ex = "" );
38 
40 
44 void fclose( int id, const char* mode = "r");
45 
47 
51 bool feof(int id);
52 
54 
58 const char* fgets(int id);
59 
61 
65 void fprintf(int id, const char* str );
66 
68 
73 long fsize(int id, const char* mode = "r");
74 
76 
81 long fpos(int id, const char* mode = "r");
82 
84 
89 void fseek( int id, int finalPos, const char* mode = "r");
90 
92 
96 bool fexist( const char* filename );
97 
102 
115 bool fadd(const char* filename, const char* mode, bool cache = true, const char* filename_ex = "", const char* archive_type = "zip", const char* password = "");
116 
121 
126 bool faddzip(const char* zipfilename, const const char* password = "");
127 
130 
134 bool fremove(const char* filename);
135 
137 
150 const char* ftostring(const char* filename, const char* encode = "utf8");
151 
153 
157 bool fdel(const char* filename);
158 
160 
165 const char* fread(int id, int len);
166 
168 
174 const char* freadf(const char* filename, int seekpos, int len);
175 
177 
182 const char* fgetsf(const char* filename, int line_nb);
183 
185 
189 int fsizef(const char* filename);
190 
194 
198 const char* ftointernalstorage(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)