Hi there everyone. I am working on a card prog for students with numbers.
I am using this code here to create a new textfile, but while I want to make a new textifle, I would like it to be blank.
I found this code on the interwebs
The only thing is I don't want to write anything in the textfile, I don't want it opened yet, just have it made for later.
If I just remove the txt to write string and print, would that still make the file correctly?
Thanks!
I am using this code here to create a new textfile, but while I want to make a new textifle, I would like it to be blank.
I found this code on the interwebs
VB Code:
Dim textFile As String Dim textToWrite As String textFile = App.Path & "\GeneratedCards\CardNumbersAlreadyGenerated.txt" textToWrite = "This is Text" Open textFile For Output As #1 Print #1, textToWrite
The only thing is I don't want to write anything in the textfile, I don't want it opened yet, just have it made for later.
If I just remove the txt to write string and print, would that still make the file correctly?
Thanks!