Hyber
10-11-2004, 05:41 AM
I'm busy creating some Memo program, all running fine not. Only 1 more problem.
I want it to save on each letter ( Put saving in text1_change )
and to load it when you open the program ( In form_load )
But I can't find the commands, tried File I/O tutorial but didn't exactly found what I need to know.
I have:
ChDir App.Path
Open "memo.sav" For Output As #2
Write #2, Memo.Text
Close #2
for saving and:
ChDir App.Path
Open "memo.sav" For Input As #1
Read (1), Memo.Text
Close #1
for loading.
It gives errors, help me?
I want it to save on each letter ( Put saving in text1_change )
and to load it when you open the program ( In form_load )
But I can't find the commands, tried File I/O tutorial but didn't exactly found what I need to know.
I have:
ChDir App.Path
Open "memo.sav" For Output As #2
Write #2, Memo.Text
Close #2
for saving and:
ChDir App.Path
Open "memo.sav" For Input As #1
Read (1), Memo.Text
Close #1
for loading.
It gives errors, help me?