Jump to content

FileOpen, 10 files?


Dieuz
 Share

Recommended Posts

Hey,

In my script, I have to deal with 10 .txt files at the same time. At first I thought that I could open the 10 files (FileOpen), do everything I need to do (write stuff in each files) then close each files (FileClose).

The thing is that it doesnt work. There seem to be a maximum number of files that you can open at the same time.

What would be the best way to deal with all these files?

If I Open/Close each file each time, will it slow my script ALOT? (Ill need to Open the files 5000++ time)

Thanks,

;)

Edited by Dieuz
Link to comment
Share on other sites

I am only editing each files, not reading.

My script is gathering result and then sorting them in different .txt files.

It's why I need to have all files "open" to be able to write in each since I dont know which one will be used.

Edited by Dieuz
Link to comment
Share on other sites

The limit is something around 500, so 10 files is no problem at all. You must be forgetting to close them or something.

We could help you much better if you showed a reproducer (short but runnable) ;)

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...