Writes a text file to c: and saves two lines of text, then loads them back up. You can add as many
Writes a text file to c: and saves two lines of text, then loads them back up. You can add as many lines as you like and change the text.
Rate Writes a text file to c: and saves two lines of text, then loads them back up. You can add as many
(2(2 Vote))
Dim x As String
Dim y As String
Private Sub Command1_Click()
Open "c:/text.txt" For Input As #1
Line Input #1, x
Line Input #1, y
Close #1
Text1.Text = x
Text2.Text = y
End Sub
Private Sub Form_Load()
Open "c:/text.txt" For Output As #1
Print #1, "your first line of text"
Print #1, "your second line of text"
Close #1
End Sub
Writes a text file to c: and saves two lines of text, then loads them back up. You can add as many Comments
No comments yet — be the first to post one!
Post a Comment