I inadvertently opened an output file without assigning a name to the output file variable.
Like:
Dim as string filename1
Open filename1 for output as #1
Compiling gave me no warning or error.
And it executed without error.
Did it actually create a file with no name that is using disk space? I see no evidence of it with dir or windows explorer. How can determine what the code actually did?
open output file with no name
-
- Posts: 862
- Joined: May 05, 2015 5:35
- Location: Germany
Re: open output file with no name
If you slightly change this snippet to you'll see that it retrurns error code 2, meaning "File not found". So no file will be created.
Code: Select all
Dim as string filename1
Print Open (filename1 for output as #1)
Sleep
Re: open output file with no name
grindstone, thank you for your reply. I should have thought to do that.