phreaky
Well-known member
I already learn how to read from text files, but what I need to know now is how to write to them and the MSDN doesnt tell about it.
Here it is what Im doing
When I use this code it says that.....
Here it is what Im doing
Dim a As String
Dim sw as IO.StreamWriter
a = "whatever"
IO.File.CreateText("file.txt")
IO.File.OpenWrite("file.txt")
sw.WriteLine(a)
sw.Close()
When I use this code it says that.....
Additional information: The process cannot access the file "(path)\file.txt" because it is being used by another process.