943,695 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 607
  • C RSS
Mar 4th, 2008
0

please help! how can I load a file in C?

Expand Post »
Please I need some help in C. I have a file with ".dat" format, how can i load it in C, into a variable, so that I can use the data for some math calculations later on?
thank you.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Cbeginner_us is offline Offline
18 posts
since Feb 2008
Mar 4th, 2008
0

Re: please help! how can I load a file in C?

Reputation Points: 18
Solved Threads: 4
Junior Poster
stupidenator is offline Offline
192 posts
since Mar 2005
Mar 4th, 2008
0

Re: please help! how can I load a file in C?

You have to know the file format before it is useful to you. The link that stupidenator posted will show you how to use the FILE to read a file, but that is useless if you don't know the details of what the file contains.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,950 posts
since Aug 2005
Mar 4th, 2008
0

Re: please help! how can I load a file in C?

thx guys it did help me!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Cbeginner_us is offline Offline
18 posts
since Feb 2008
Mar 6th, 2008
0

Re: please help! how can I load a file in C?

well actually Ancient Dragon, you are right, my file contains some data collected from the output of an Analog-to-Digital converter, I need to load these data and try to do some mathematical calculations to get some results. Can u help me with that?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Cbeginner_us is offline Offline
18 posts
since Feb 2008
Mar 6th, 2008
0

Re: please help! how can I load a file in C?

>>Can u help me with that?
Probably, but not without knowing how the data was written
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,950 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: fopen windows file
Next Thread in C Forum Timeline: C serial com port terminal program





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC