A way to input / write from/to .txt files_*
This is only for beginners and the advanced guys will know it ..The following lines of code will teach you how to input from .txt files and how to write to .txt files .... Votes and Comments are highly appreciated ! Happy Programming
AI
Shrnutí AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Zdrojový kód
Make a label and name it lblInput1 Make a .txt file in the same folder as the project .and name it as InputFile make a command button ,name it cmdWrite make a textbox and name it txtInput Now ,in the Form_load() event ,add this code - dim txtVar1 as string open app.path + "\inputfile.txt" for input as #1 input #1, txtvar1 txtvar1 = lblinput.caption close #1 Now to write to .txt files In the cmdwrite_click() event - open app.path + "\inputfile.txt" for append as #2 write #2, txtinput close #2
Původní komentáře (3)
Obnoveno z Wayback Machine