choccarlm
asked on
Saving files with variable filenames
How do I save a file, but using a variable in my program as the file name. At the moment I use
open "c:\windows\desktop\somefi lename" for output as #1
What I want is
open "C:\windows\desktop\(text1 .text)" for output as #1.
How would I do this?
open "c:\windows\desktop\somefi
What I want is
open "C:\windows\desktop\(text1
How would I do this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Dim pzName As String
pzName = pzPath & "text1.txt"
Open pzName For Output As #1#
Print #1, "Hallo"
Close #1