%HOMEPATH% variable Questions

1

How do I find the file path to write my file to?
Here is my code and then my question. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim objfile As New System.IO.StreamWriter(“C:Documents and SettingsJOHNDOEMy DocumentsTHETARGETFOLDERMYFILE.TXT”) objfile.WriteLine(“just a test”) objfile.Close() end sub This code will write to my target folder, however if i build my project and make it available for other people [...]

Answer Question   |  December 15, 2008  11:51 PM
%HOMEPATH% variable, Relative references, System.IO.StreamWriter, Visual Basic, Visual Basic 2008
asked by:
50 pts.

1