Selecting the path directory
Hi
I'm doing a saving data into a text file. The codes that I have so far done only allows me to state before hand where want it to be. I'd like the user to choose the directory in each they want to save instead of saving directly into that directory I specify. How can I change this piece of codes to allow the user to specify the directory they want to save?
Please help me if I've done wrong in the code. Thank you!
Dim FILENAME as String = Server.MapPath("Output.txt")
Dim objStreamWriter as StreamWriter
objStreamWriter = File.AppendText(FILENAME)
objStreamWriter.WriteLine(data)
objStreamWriter.Close()
|