19.12.2012, 20:00
Код:
new string[255]; new String[255]; new File:example = fopen("input.txt", io_writeread); fwrite(example, "I just wrote here"); fread(example, string); fclose(example); new File:example2 = fopen("output.txt", io_write); new stringLength = strlen(string); strmid(String,string,0,stringLength / 2); fwrite(example2,String); fclose(example2);
I just wrote here >> I just