|
-
Jan 3rd, 2000, 09:58 AM
#1
Thread Starter
Member
I need to be able to save text files to file and access them later without using common dialogs, any code?
-
Jan 3rd, 2000, 10:05 AM
#2
Guru
-
Jan 3rd, 2000, 10:58 AM
#3
Thread Starter
Member
yeah, but i meant WITHOUT using the common dialog control, but thanks any way
-
Jan 3rd, 2000, 12:39 PM
#4
Guru
just read the part about opening the file for output and putting data into it, not the commondialog part. Are you looking for a way to display to the user something similar to the commondialog control?
-
Jan 3rd, 2000, 11:42 PM
#5
You could use this code to save the file:
Code:
Private Sub Command1_Click()
Open YourFile.txt for Output as #1
Print #1, Text1.Text
Close #1
End Sub
And for opening the file, you could use...
Code:
Private Sub Command2_Click()
Open YourFile.txt for Input as #1
Text1.Text = Input(LOF(1),1)
Close #1
End Sub
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
|