12.05.2016, 13:31
For manipulation of the archives with file functions is very simple.
Principals functions:
fexists:
fopen:
with params:
Read only
Write only
Append only
Read e Write only (use loop in this function)
fread:
with loop:
fwrite:
fclose:
fremove:
Principals functions:
fexists:
Quote:
fexists(FileName); |
Quote:
fopen(FileName); |
Read only
Quote:
fopen(FileName, io_read); |
Quote:
fopen(FileName, io_write); |
Quote:
fopen(FileName, io_append); |
Quote:
fopen(FileName, io_readwrite); |
Quote:
fread(FileName, String); |
Quote:
for(new i; i < fread(FileName, String); i ++) printf(String); |
Quote:
fwrite(FileName, String); |
Quote:
fclose(FileName); |
Quote:
fremove(FileName); |