View Single Post
Join Date: Aug 2005
Posts: 15,628
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1496
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Reading/writing .txt files into an array

 
0
  #7
Dec 2nd, 2007
The input line can be split using stringstream class
  1. #include <sstream>
  2. ...
  3. ...
  4. stringstream stream(line);
  5. stream >> firstName >> lastName >> employeeID;
Last edited by Ancient Dragon; Dec 2nd, 2007 at 10:30 pm.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote