by AJ Seelund (1 Submission)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Thu 26th July 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Simply writes a (text) file of your choice (ini,txt,your own extension as a text file)
API Declarations
variable1 as sring
variable1 = "C:\windows\charmap.exe"
label1.caption = "Hi there"
file1 = "C;\windows\file1.ini"
' you can have it output what you want to write
' or you can have it write a variables text
' or you can write from almost anything on the form
open file1 for append as #1
print #1, "whatever you want to type"
Print #1, variable1
Print #1, label1.caption
close #1
'<-----what it lookslike in the file------->
'whatever you want to type
'c:\windows\charmap.exe
'Hi there
'<----------------------------------------->
'You can also create bat files(with the above) and have windows run them by
' using this:
'Call shell("start C:\windows\file1.bat")
No comments have been posted about Simply writes a (text) file of your choice (ini,txt,your own extension as a text file). Why not be the first to post a comment about Simply writes a (text) file of your choice (ini,txt,your own extension as a text file).