Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • *Experts*
Posted

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

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...