|
-
Feb 27th, 2000, 09:31 AM
#1
Thread Starter
Member
Here is what I am trying to do. I need to have a user click on a button and then a certain directory (example c:\data) is accessed and I need to out put this to a text file.
I know the old sheel way would be to do a dir c:\data>test.txt
but any other way possible?
Thanks again
-
Feb 27th, 2000, 02:31 PM
#2
Lively Member
use the "Open (For Output)" Fxn
in conjunction with Print or Write
*************
' Open a file for output
Open "test.txt" For Output As #1
' Write to the test file
Print #1, "c:\data"
' Close the file
Close #1
*************
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|