Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read from file

Status
Not open for further replies.

icho

Technical User
Aug 25, 2001
1
NL
I'm want to make an application that has to read specific information from a file and that information has to be put in a database.

The file is like this:
Processed 3,601,069,380 bytes in one hour, 28 minutes and 27 seconds.
Throughput rate: 38.8 MB/min

The information :3,601,069,380
and
38.8

Has to be put in a database.

Can someone give an advice!
 
You can use fscanf or fgets and some string-functions like strchr to read the information from the file.

Hope this can help you.
Regards.
 

The best way to store anything is to serialize it first. Then you don't need to worry about the formatting issues as much. Take a look at serialization in the MSDN.

Brother C
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top