cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
read data from a file
read data from a file
May 28, 2010 at 8:26pm UTC
cmccmc
(103)
how do you read a specific section from a file. I don't want to get the whole line just part of the middle of it.
May 28, 2010 at 8:29pm UTC
Albatross
(4553)
http://cplusplus.com/reference/iostream/istream/seekg/
http://cplusplus.com/reference/iostream/istream/read/
Hopefully, those will help. If you have a delimiting character, however, getline also works. Just set the delimiting character as the third parameter.
-Albatross
Topic archived. No new replies allowed.