|
-
Jan 24th, 2005, 12:28 AM
#1
Thread Starter
Lively Member
Very basic question
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
-
Jan 24th, 2005, 12:32 AM
#2
-
Jan 24th, 2005, 12:37 AM
#3
Lively Member
Re: Very basic question
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.
~ What was once an opinion, became a fact, to be later proven wrong... ~
-
Jan 24th, 2005, 12:40 AM
#4
Thread Starter
Lively Member
Life may suck, but we can't live without it...
----------------------
 Originally Posted by penagate
What the hell is 'Ptr'? All pointers will be untyped? That points (if you'll excuse the lame pun) to disaster, if you ask me.
-
Jan 24th, 2005, 12:52 AM
#5
Re: Very basic question
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.
ØØ
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|