Create and save into .txt files.

By | 2002-06-01

This will create and write into a *.txt file of your choice. Put this code in a timer and you have yourself a keystroke logger. You can save the contents of a textbox into a file also.

Original Author: Abdul Kudrath

Assumptions

Put this code in a button and it will save the contents of a textbox.

Code

' code for saving into a .txt file
' put into a button
open "path and filename" for append as 1
' example C:demo.txt
print #1, text1.text
close 1

Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.