Text file into array of structure

simple question i think..

Page 1 of 1

0 Replies - 2252 Views - Last Post: 05 March 2008 - 05:11 PM Rate Topic: -----

#1 goblue89x  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 05-March 08

Text file into array of structure

Posted 05 March 2008 - 05:11 PM

so im writing a program that reads a text file like this

April,Joe
21
312033387
126 Freelane, Yourtown, State 88990

but quite a few of those with different information in each piece. i got it to read the file and create a back up. but im having trouble making it into array of structure and displaying it.. and each structure must contain each persons' information:

Last_Name, First_Name
Age
ID
Address

i dont want to edit the orginal file, i just want to make the file contents into a array..

help!!

Is This A Good Question/Topic? 0
  • +

Page 1 of 1