I working on a personal project of mine and got stuck. The program is a simple quiz in which the user answers some questions, and their results are saved into a text file. Reading and writing to text files is easy so I don't need help with that. On my form I have a textbox and two buttons. The user will input his/her name into the textbox and hit a "take quiz" button. That button will create a text file, but i want the text files name to be what the user just entered in the textbox. The idea is that for my second button "Load File" will pull up the text file under their name. Any help would be appreciated.
Jump to Post
The only problem is to validate user input as a valid file name. AFAIK the following should be 100% bullet-proof method
Dim FileName As String Dim bIsValidFileName As Boolean Dim i As Integer ' Get user input FileName = TextBox1.Text ' Validate bIsValidFileName = True ' Can't …
All 2 Replies
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.