I need to be able to save text files to file and access them later without using common dialogs, any code?
Printable View
I need to be able to save text files to file and access them later without using common dialogs, any code?
yeah, but i meant WITHOUT using the common dialog control, but thanks any way
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?
You could use this code to save the file:
And for opening the file, you could use...Code:Private Sub Command1_Click()
Open YourFile.txt for Output as #1
Print #1, Text1.Text
Close #1
End Sub
Code:Private Sub Command2_Click()
Open YourFile.txt for Input as #1
Text1.Text = Input(LOF(1),1)
Close #1
End Sub