I understand you didn't have the time to search on php.net, by typing scanf in the search field, or googling php scanf, for example.
You may use sscanf and fscanf.
Regards,
Hive
P.S.: Contrary to popular belief, posting the same question over and over again actually decreases your chances of getting replies, at least nice and helpful ones.[/i]