Quote:
Originally Posted by [S]trong
pawn Код:
frename(oldfile [], newfile []) // by [S]trong { if (!fexist(oldfile)) { return print("Error: Could file not found!"); }
new String [256], File: oldarchive = fopen(oldfile, io_read), File: newarchive = fopen(newfile, io_write);
while (fread(oldarchive, String)) { fwrite(newarchive, String); } fclose(newarchive); fclose(oldarchive);
return fremove(oldfile); }
|
Ai eu uso assim?:
pawn Код:
frename(diretorio,tmp); //exemplo..