Visual Basic Codes
ActiveX
Miscellaneous
Applications
Code Snippets
Common Dialogs
Special Effects
Database Stuff
Date Time
Files Drives
Forms
Graphics Games
Internet Stuff
Multimedia
Other
Strings
Windows
Visual Basic > Code Snippets sample source codes
Add lines of text to a file
Add lines of text to a file Private Sub Form_Load() 'Replace 'c:\test.txt' with the name of the file you want to edit. Open "c:\test.txt" For Append As #1 'Replace 'new line added' with the line you want to insert to the file. Print #1, "new line added" Close #1 End Sub
Privacy Policy
|
Link to Us
|
Links