hi, i have a problem. I have been wokring on my own version of notepad for about, oh, 30mins now. And ive run into a problem. I would like to save the contents of the textbox to a file. thanks.
-Girvo
Printable View
hi, i have a problem. I have been wokring on my own version of notepad for about, oh, 30mins now. And ive run into a problem. I would like to save the contents of the textbox to a file. thanks.
-Girvo
Sample app to do exactly that.
http://noteme.com/prog/babyeditor.zip
ØØ
Quick easy way...
VB Code:
Open "C:\TextFile.txt" For Output As #1 Print #1, Text1.text Close #1
Now to make the "Save As.." window pop open, so you can create a file name and pick a location to save the file: search out 'CommonDialog1' in the forums.
[EDIT] Sorry, NoteMe posted as i was typing.
Thanks everyone!
No problem Misspell.
Just to add to my post. My sample actualy uses the CommonDialog too. So you get everything in one package. And it both loads and saves.
ØØ