Im doing a program, and at a point, i have to load file, and save the "link" to the file in a txt file so that i may find it the next time i open the program
at first i tried doing:
wmap saves the right string(tested it with a msgbox) but for some reason i cant write it in a txt anymore -_- as a matter of fact, i cant write ANYTHING in a txt anymore
Any ideal, or thing i did wrong?
at first i tried doing:
wich worked perfectly, but since typing the file directory wasnt very user friendly, i changed it to be able to browse a fileDim sWriter As StreamWriter
Dim Wmap As String
Wmap = InputBox("blah blah?")
sWriter = New StreamWriter("..\Wmap.txt")
sWriter.Write(Wmap)
sWriter.Flush()
sWriter.Close()
Dim sWriter As StreamWriter
Dim Wmap As String
If OpenFileDialog1.ShowDialog() = DialogResult.OK Then
Wmap = OpenFileDialog1.FileName
sWriter = New StreamWriter("..\Wmap.txt")
sWriter.Write(Wmap)
sWriter.Flush()
sWriter.Close()
End If
wmap saves the right string(tested it with a msgbox) but for some reason i cant write it in a txt anymore -_- as a matter of fact, i cant write ANYTHING in a txt anymore
Any ideal, or thing i did wrong?