Click to See Complete Forum and Search --> : help with saving and loading?


The One
03-04-2006, 11:10 AM
1) I have got a program in which there are at least 10 textfield. i type in them and then press save. It saves it to a textfile. but then everytime i type in new data it overides it which i dont want. Do u have a solution where it saves differently?

2) Second i would like then to be able to load a selected file with the information and put it in the textfields. do you have another solution for that?

PLEASE HELP?
i need to finish it this week.

Khalid Ali
03-04-2006, 11:28 AM
see I have provided you with almost all of the solution however you do not do what u are asked to.."Read the API" for goodness sakes and try to understand it. You can get this done by asking some one or you can actually learn what u are trying to do.

The One
03-04-2006, 11:38 AM
i did. i jus cant find the bit about saving multiple files?

Khalid Ali
03-04-2006, 01:34 PM
ok here is what happens when u save a file.
A file is converted into a stream
then this file is written back to disc.

If you want to save multiple files, this means that you will need to read in as many files and all files need to be converted to input streams thne one by one you will need to write those files individually using output streams.