This topic is now archived and is closed to further replies.


Using fscanf()

Recommended Posts

Yes I am using fscanf in C++(OH the SHAME), dont talk me out of it, please, its the little I can hold on, from the old days, now, I wanted to know how to take in from a file or whatever a Float? fscanf(file,"%d",$number); is fine for a integer, but really messes up with a float, thanks for the help, I dont got 2 many books on it, thats why Im asking such a stupid question PS: If your wondering why I need this, Im almost finished writing a loading function that loads that RTG(Real Time Game) format from that MAXSCRIPT on Gamasutra(which means?).com, that someone here told me about, thanks a lot you guys!(if your interested in the code, Ill send it to you)

Share this post

Link to post
Share on other sites