*** Quoting Jabo to All dated 03-03-98 ***
> ok
>
>
> i save a digit lets say is 6542 to a file ( XXX.ext )
> how would i read the digit in XXX.ext and +/- from it?
>
> HELP!
>
> i save it fprintf("fptr, %d", total);
> i tried but it reads the contents of the file as a string!?
>
> and i cant add # to a string. Is there a way to convert a string ->
> int?
>
> or read a file as int?
>
> instad of fgets(); they need a fgetd(); B)
>
try using fwrite()/fread() instead of fprintf()
--- T.A.G. 2.7c Standard
---------------
* Origin: The Wizards Realm BBS 1-713-946-7315 1:106/7315 (1:106/7315)
|