|
-
Nov 6th, 2000, 04:53 PM
#1
Thread Starter
New Member
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???
-
Nov 6th, 2000, 05:04 PM
#2
Addicted Member
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
-
Nov 6th, 2000, 05:12 PM
#3
Thread Starter
New Member
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.
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
|