T
Tlink
I execute the following code and the created file cannot be deleted as it
reports it is being used, even when I reboot the machine.
Private WFilename As String = "data.txt"
File.Move(txtcontrolfile.Text, FolderBrowserDialog1.SelectedPath & "\" &
WFilename)
File.Delete(inifile)
wfile = File.CreateText(inifile)
wfile.WriteLine(FolderBrowserDialog1.SelectedPath & "\")
wfile.Flush()
wfile.Close()
reports it is being used, even when I reboot the machine.
Private WFilename As String = "data.txt"
File.Move(txtcontrolfile.Text, FolderBrowserDialog1.SelectedPath & "\" &
WFilename)
File.Delete(inifile)
wfile = File.CreateText(inifile)
wfile.WriteLine(FolderBrowserDialog1.SelectedPath & "\")
wfile.Flush()
wfile.Close()