file read and recuperation problem!!

Hi all,
I have a little problem, I want to gets some information from a file that i have created, but there isn’t the fgets function or something like that, so i cannot have the informations that i want in the file. I know where they’re but i just wanted to know if it’s possible to save them ( in an integer ) in order to put them on a web page control!!
Thanks a lot and sorry for my english