reading file

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2008
Posts: 2
Reputation: cinderla is an unknown quantity at this point 
Solved Threads: 0
cinderla cinderla is offline Offline
Newbie Poster

reading file

 
0
  #1
Dec 3rd, 2008
hi, i need to read a file and to store contents in buffer. to read the first 8 bytes and to move the pointer to read the strings in that file.
could any one help me?
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 182
Reputation: mrboolf will become famous soon enough mrboolf will become famous soon enough 
Solved Threads: 18
mrboolf mrboolf is offline Offline
Junior Poster

Re: reading file

 
0
  #2
Dec 3rd, 2008
Originally Posted by cinderla View Post
hi, i need to read a file and to store contents in buffer. to read the first 8 bytes and to move the pointer to read the strings in that file.
Great, good to know.
What did you tried and precisely how did it fail to work?
Post both the attempt and the failure symptoms (i.e. compiling errors, unexpected or totally wrong output - anything that qualifies) if you want to get help from anyone here.

(read this for further explanations)
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 2
Reputation: cinderla is an unknown quantity at this point 
Solved Threads: 0
cinderla cinderla is offline Offline
Newbie Poster

Re: reading file

 
0
  #3
Dec 3rd, 2008
ya i need help just want to read a file by using file functions. by reading a file all the datas will be in a buffer know. in the buffer i want to rretrieve 8 bytes , how to do this ?
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 3,842
Reputation: VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute 
Solved Threads: 503
Featured Poster
VernonDozier VernonDozier is offline Offline
Senior Poster

Re: reading file

 
0
  #4
Dec 3rd, 2008
Originally Posted by cinderla View Post
ya i need help just want to read a file by using file functions. by reading a file all the datas will be in a buffer know. in the buffer i want to rretrieve 8 bytes , how to do this ?
If you are reading files and using buffers and pointers, then you aren't a complete beginner, so you can at least show some code, even if you are stuck on part of it.
Reply With Quote Quick reply to this message  
Reply

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




Views: 379 | Replies: 3
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC