J
Juggernaut
Hi
I have a that stores cd's in an array with title, artist, runtime etc.
Now I want to try and write it to file and that works just fine.
But when I read the file and place the variable into the array again, but im
not sure how to do this. I know I have to use stringtokenizer but I just
cant find a good example to explain this to me so I was wondering if anyone
could help
Lets say the file is like this:
--
Bill myers the album
Bill Myers
Rock
56
Kaizers orchestra
Johny J
Rock
74
--
Now these are 2 cd's..and I want to put it into the variables cd name,
artist, genre and runtime.
But how do I do this? It seperates with new line, but what when it comes to
the blank line before the next one?
Could anyone give me a working example of how to accomplish this?
Thanks in advance
I have a that stores cd's in an array with title, artist, runtime etc.
Now I want to try and write it to file and that works just fine.
But when I read the file and place the variable into the array again, but im
not sure how to do this. I know I have to use stringtokenizer but I just
cant find a good example to explain this to me so I was wondering if anyone
could help
Lets say the file is like this:
--
Bill myers the album
Bill Myers
Rock
56
Kaizers orchestra
Johny J
Rock
74
--
Now these are 2 cd's..and I want to put it into the variables cd name,
artist, genre and runtime.
But how do I do this? It seperates with new line, but what when it comes to
the blank line before the next one?
Could anyone give me a working example of how to accomplish this?
Thanks in advance