"C:/" & "\keys.txt" = C:/\keys.txt
how should that work o_O?
-------------------------------
Sorry nextgen, but I have to correct you 

Originally Posted by
Nextgen1
If you want to save to your desktop, use SpecialFolderpath
Code:
Dim Deskloc As String
Deskloc = Environment.SpecialFolder.Desktop
Dim Tfile As String = "Deskloc" & "keys.txt"
IO.File.WriteAllText(Tfile, TextBox1.Text)
Deskloc will result as "0"
The actual code to get the desktop folder path is the following
Code:
Dim Deskloc As String
Deskloc = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
Dim Tfile As String = "Deskloc" & "keys.txt"
IO.File.WriteAllText(Tfile, TextBox1.Text)

------------------------------------------------------------
If that's not working for you try the following:
Code:
dim streami as streamwriter
streami = New StreamWriter("C:\test.txt")
streami.Write(Textbox1.text)
streami.Close()