Create the class
Open the file
Read a line
Place it in the variable
continue.
Pretty basic stuff.
WaltP
Posting Sage w/ dash of thyme
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
waltP
sorry to be a pain but what is the code to itterate through the file doing different things with each line? is it any different from doing the same thing to every line?
No, it's no different.
Sorry, but what you are actually asking us to do is teach you how to do a loop, open a file, read a file, and create and store data into your class. This is ahelp forum, not a teach me forum. Your instructor should have taught you all the things I mentioned. Your job is to put them together to accomplish the project. Our job is to help you when you get stuck, not teach you from scratch.
WaltP
Posting Sage w/ dash of thyme
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944