Hi I'm having issues regarding writing several strings to a txt file.
The sub starts like this
Writing and closeCode:Dim ss As New FileStream("Settings.conf", FileMode.OpenOrCreate, FileAccess.ReadWrite) Dim s As New StreamWriter(ss)
But when i click the button several times, it says that the file is being used by another process. My guess is that s wasn't closed?Code:s.BaseStream.Seek(0, SeekOrigin.Begin) s.WriteLine(info.StoreName) s.WriteLine(info.aName) s.WriteLine(info.aID) s.Close()
Edit: Also, how do I enable a button after clicking another button?




Reply With Quote