Jump to content

having trouble opening file


Recommended Posts

im using FileOpen("myfile.txt", 0) to try to open a file and it keeps returning -1. the file though is constantly being written to so maybe that has something to do with it? I dont know what to do. even if its being written to shouldn't i still be able to open it?

Link to comment
Share on other sites

im using FileOpen("myfile.txt", 0) to try to open a file and it keeps returning -1. the file though is constantly being written to so maybe that has something to do with it? I dont know what to do. even if its being written to shouldn't i still be able to open it?

From the helpfile

A file can only be in either read or write mode; it cannot be in both.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...