Saving files and using arrays properly
Author |
Message |
Toast456
|
Posted: Wed Mar 23, 2011 11:11 am Post subject: Saving files and using arrays properly |
|
|
How to save into files and read file, also how to prvent arrays from over writgh itself?
<Replace all the <> with your answers/code and remove the <>>
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?
<Answer Here>
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
<Answer Here>
My code is far to long for me t add to the web site, but if you want it ou can ask.)
<Answer Here>
Turing: |
<Add your code here>
|
I am using the newest turning
<Answer Here> |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Tony

|
Posted: Wed Mar 23, 2011 1:25 pm Post subject: 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 |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
 |
Lucas

|
Posted: Wed Mar 23, 2011 4:14 pm Post subject: 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
|
Posted: Wed Mar 23, 2011 4:39 pm Post subject: 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 |
|
|
|
|
 |
|
|