I have been programming in VB 6.0 for some time now, but I still can't output more than one line to a file. Here is my code:
Open "blah.txt" For Output As #1
Print #1, "YES"
Print #1, "NO"
Close #1
only "YES" shows up in "blah.txt", what is wrong???
Printable View
I have been programming in VB 6.0 for some time now, but I still can't output more than one line to a file. Here is my code:
Open "blah.txt" For Output As #1
Print #1, "YES"
Print #1, "NO"
Close #1
only "YES" shows up in "blah.txt", what is wrong???
I just thought I would mention that I tested out your sample code. I was trying to replicate your problem, I copied and pasted your code into a button function and it seemed to work fine, I got both YES and NO in my text file.
Not that is should make a difference, but do you have the latest service pack for VB?
I'm sure this isn't much help, but I thought I would tell you regardless.
Michael
I feel EXTREMELY stupid. I had two copys of the same text file in different folders but I was checking the wrong one. I am embarrassed.