Jump to content
Sign in to follow this  
kokyo

Unable to open file...

Recommended Posts

kokyo

I write a script with a while~wend loop. It will stop running a couple of hours later with error message of "Error: Unable to open file, the maximum number of open files has been exceeded." I use file access relate functions like FileOpen, FileWriteLine, FileClose, FileGetTime, FileReadLine, Run and SouldPlay between while~wend loop. It's about 1 loop every second. Does anyone know what's the problem? Thanks a lot.

Share this post


Link to post
Share on other sites
smashly

Hi,

Post some code related to your problem please, it'll make it easier to see what's going wrong.

Cheers

Share this post


Link to post
Share on other sites
DjDeep00

Sounds like you are not using "FileClose" to close the file after you do anything with it.

Share this post


Link to post
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
Sign in to follow this  

×