TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JABO
from: BRADLEY MACOMBER
date: 1998-03-07 17:00:00
subject: HELLLLLLLLLLLLLLLLLLLLLP

*** 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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.