How can i safe or import texboxes text in visual basic? Like saving it into note pad or word? | Sololearn: Learn to code for FREE!

0

How can i safe or import texboxes text in visual basic? Like saving it into note pad or word?

Question

2/5/2017 10:23:24 PM

John A

1 Answer

New Answer

-1

Hi Why would you use Visual Basic? C# is way more modern...anyway, here's how: First import System.IO (using System.IO;) then to write textbox value in the file you can do: File.WriteAllText("*your file path *", TextBox1.Text ); the path must have "\\" instead of "\", example: "Desktop\\My files\\project"