strdel help
#1

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
Код:
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);
for some reason it works except it saves 1 after 0 instead of deleting 0 and saving 1.
Reply


Messages In This Thread
strdel help - by Badger(new) - 03.02.2009, 22:05
Re: strdel help - by Mikep - 03.02.2009, 22:12
Re: strdel help - by Badger(new) - 03.02.2009, 22:14
Re: strdel help - by Badger(new) - 03.02.2009, 23:15
Re: strdel help - by Ghett0 - 04.02.2009, 00:15
Re: strdel help - by Badger(new) - 04.02.2009, 13:32
Re: strdel help - by Badger(new) - 04.02.2009, 21:58

Forum Jump:


Users browsing this thread: 1 Guest(s)