How would i save a list of names, lets say, and then when I go to the file bar and click Class 1. How would i get the names from the txt File into a text box or label?
Saving Data into a text file
Collapse
X
-
Tags: None
-
Originally posted by superdudesHow would i save a list of names, lets say, and then when I go to the file bar and click Class 1. How would i get the names from the txt File into a text box or label?Code:Open "MyFile.txt" For Output Access Write Lock Read Write As #1 Print #1, Count For I = 1 To Count Print #1, Name(I) Next Close #1
Code:Open "MyFile.txt" For Input Access Read Shared As #1 Line Input #1,Count Redim Names(Count) For I = 1 To Count Line Ipnut #1, Name(I) Next Close #1
Comment