03.02.2009, 22:05
hi. i cant get strdel to work in this way (or any other way :S):
0 is saved into a file and i want it to delete 0 and replace it with a different number
for some reason it works except it saves 1 after 0 instead of deleting 0 and saving 1.
0 is saved into a file and i want it to delete 0 and replace it with a different number
Код:
format(Loc, sizeof(Loc), "/PINFO/PWS0/%s.txt", PNAME); File = fopen(Loc,io_append); strdel(Loc,1,2); format(string,sizeof(string),"1"); fwrite(File,string); fclose(File);