VB6 Open Run-Time Error 55

E

Eric Marple

I have written a function that opens a .txt for OutPut
and it opens a separate .txt for InPut. I get a Run-Time
error 55. I see the help says you can't have the same you
must close a file opened for Input before opening it for
Output. Both .txt's have different names and paths. Does
anybody know a way around this?
 
H

Howard Kaikow

Each file has to have a different file number.
See the Help for the Open and FreeFile statements.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top