Problems reading from files

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2005
Posts: 4
Reputation: smicer is an unknown quantity at this point 
Solved Threads: 0
smicer smicer is offline Offline
Newbie Poster

Problems reading from files

 
0
  #1
Nov 7th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 80
Reputation: Daishi is an unknown quantity at this point 
Solved Threads: 2
Daishi Daishi is offline Offline
Junior Poster in Training

Re: Problems reading from files

 
0
  #2
Nov 7th, 2005
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC