hey i wonna know how to make a program to input a text and save it in *.txt as a notepad file.

Recommended Answers

All 2 Replies

Just search on this in google!

open a new vb form and create a command1 command button and text1 textbox. Double the click the command button and type:

Open "C:/text1.txt" For Output As #1
Write #1, Text1
Close #1

Then run the program,once you click command1 the text in the textbox will get saved to a text file 'text1.txt' in the parent directory of the c drive.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.