Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic input-output to a file

Status
Not open for further replies.

danvlas

Programmer
Jul 30, 2002
2,446
RO
Hey everybody,

Can anyone tell me why the following piece of code generates an error 54- Bad File Mode in line 'Print #1...'?

Code:
Open "C:\FileName.txt" For Output As #1

For i = 0 To n
    Print #1, arrInfo(i)
Next

Close #1

Win XP, SP2, Access 2003, Administrator permissions.

It used to work in good old days...not anymore.
Am I missing something?

Thank you in advance,


[pipe]
Daniel Vlas
Systems Consultant

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top