by VisualBlind (12 Submissions)
Category: Files/File Controls/Input/Output
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sun 28th May 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Write and Read Specific Lines in a Text File, instead of having to make one line for each file, learn to store all your data in one file!!!
Open "c:\a.txt" For Output As #1
Print #1, "abc"
Print #1, "123"
Print #1, "aaaaaa"
Close #1
End Sub
Private Sub Command2_Click()
Open "c:/a.txt" For Input As #1
Line Input #1, x
Line Input #1, y
Line Input #1, z
Text1.Text = x
Text2.Text = y
Text3.Text = z
Close #1
End Sub
No comments have been posted about Write and Read Specific Lines in a Text File, instead of having to make one line for each file, lea. Why not be the first to post a comment about Write and Read Specific Lines in a Text File, instead of having to make one line for each file, lea.