I know this is a dumb question, but I must be missing something simple and just can't figure it out. My program has a logfile to track things done with it. I'm trying to figure out what I am missing with creating the file if it does not exist. Am I missing something so simple? Or should I be writing this in respect to a True/False method?
Imports System.IO Public LOGFILENAME As String = "C:\PFC Xpress\Logfile.txt") Private Sub Form1_Load...... If File.Exists("C:\PFC Xpress\Logfile.txt") Then 'Do Nothing Else File.Create("C:\PFC Xpress\Logfile.txt") End If End Sub