944,113 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 1686
  • C RSS
Nov 7th, 2005
0

Problems reading from files

Expand Post »
Greetings,
i have been having problems trying to read from files using c programming. i succeeded in reading from .txt files and playing with the contents but i can't read al the contents of any .jpg or .doc file. please how do i go about this. i hve not tried other extensions but i am sure they won't work if .doc doesn't work for me.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
smicer is offline Offline
4 posts
since Oct 2005
Nov 7th, 2005
0

Re: Problems reading from files

Probably the '.txt' that you are reading is an ASCII file. .jpg and (I think) .doc are binary files. The difference is that ASCII files generally store readable text data, and binary files generally contain non-text data.

-Fredric
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
Daishi is offline Offline
80 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: String operations
Next Thread in C Forum Timeline: Currency: Making Change





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


Follow us on Twitter


© 2011 DaniWeb® LLC