
-----------------------------------
Toast456
Wed Mar 23, 2011 11:11 am

Saving files and using arrays properly
-----------------------------------
How to save into files and read file, also how to prvent arrays from over writgh itself?



I dont know how to open a file and take info from the file and then save the file again without deleting what was in the file. I also dont know how to add, lets say song info into a file and then get it back later agian to use when i reopen my program. The final problom I am having is that my arrays will over right each other, how can i have it so that when you add a new song it wont delet the old song in its place. AKA when adding a new song, it wont delet an alredy there song number 1?



I have played around with saing and opening files for a little over an hour and look at other topics on this form., P.S. if you reply please e mail me at tpast456@hotmail.com because i am new to this website



My code is far to long for me t add to the web site, but if you want it ou can ask.)








I am using the newest turning


-----------------------------------
Tony
Wed Mar 23, 2011 1:25 pm

RE:Saving files and using arrays properly
-----------------------------------
You would need to do some reading on how to work with files and arrays. We have tutorials linked to from Turing Walkthrough

-----------------------------------
Lucas
Wed Mar 23, 2011 4:14 pm

RE:Saving files and using arrays properly
-----------------------------------
use a flexible array, and whenever you add a song, make the array + 1 and save the song in that array spot?

-----------------------------------
Toast456
Wed Mar 23, 2011 4:39 pm

RE:Saving files and using arrays properly
-----------------------------------
So i Fixxed my array problom, the only problom now is that i dont know how to open and save files correctly.

I have read those totarals and they didnt help me.

What i really need help with is reading the file and being able to get from it...
song name
artist
album 
and so on, exept for a bunch of diffrent songs. How would  u have turing read the file correctly and add them to a list. If you want to see me code (working what i have done) then email me at (that email is incorrent^)
toast456@hotmail.com
