Create a file and write to it
Dim f As IO.StreamWriter
f = IO.File.CreateText(IO.Directory.GetParent( _
Application.ExecutablePath).ToString & "\Temp.txt")
f.Write("blah")
f.Close()
This worked, it created it in my visual studio projects/test/bin folder. But do you know how I can change this? I tried to add a different path before the \temp.txt, but that didnt work for me.
Change the Application.ExecutablePath).ToString & "\Temp.txt") bit
to something else, like C:\stuff\Temp.txt. You can give it a relative
path like I did, or an absolute path.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.