Help with files and arrays

wrxdriven

Newcomer
Joined
Sep 23, 2003
Messages
16
I am creating a console app for my cd collection

I already created a class called CD

I am having trouble coming up with the appropriate procedure to do the following.

I am not sure what to do from here.

I know i want it to recieve the string (which is the location of the cd.txt) and recieve an arraylist full of CD objects.

The procedure will create a text file and store all the CD information in the ArrayList to the file in the exact same format as this

128;Heart, Soul & A Voice;Jon Secada;12.99;4;00032.jpg

(128 is the call number; then name; then artist;price i paid;quantity;image cover call)
If you need more info or if i didn't make myself clear let me know.

Thank you all
 
Assuming each CD object knows how to save itself (you'll have to code that), you can have the method loop through the arraylist and have each one save itself. Do you need help with filehandling (opening and writing to a file), how to get the CD object to save it's own data, or...?

-Nerseus
 
Yeah i need help in a bad way.
I am just not that proficient in arraylist and i want to make this work right.

Do you have any building blocks or maybe some suggestions as to where to start

Thank you
 
Back
Top