I'm trying to have VB open a basic 1 line settings text file but I want it (for first time users) to create the file if it doesn't exist, but I can't open the file without getting an error. How do I go about creating this file if it doesn't exist?
At present I have this for the opening/reading of the file, but as soon as it hits the line with the open command it gets Runtime Error 53 'File not found':
Private Sub Form_Load()
Dim content As String
Open "H:\settings.txt" For Input As #1
Input #1, content
Set Image1.Picture = LoadPicture(content)
Close #1
End Sub