View Single Post
Join Date: Oct 2007
Posts: 30
Reputation: cl3m0ns is an unknown quantity at this point 
Solved Threads: 0
cl3m0ns's Avatar
cl3m0ns cl3m0ns is offline Offline
Light Poster

Re: Reading/writing .txt files into an array

 
0
  #6
Dec 2nd, 2007
Originally Posted by WaltP View Post
Yes. But it depends on lots of things -- format of the file, what the array looks like, what delimiters are in the string. Details help make decisions.

the .txt file is...

Joe Cruise E1111
Bill Bones E2222
Sue Smith E3333
Tom Turpin E4444
Ron Stewart E5555
Mindy Sweet E7777

and the class file employee has string firstName, string lastName, string employeeID.

i want to use an array in my int main to write those names and ID's to the class....


is that possible and if so how would I even start to do it?
Reply With Quote