Dieuz Posted December 16, 2009 Share Posted December 16, 2009 (edited) 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 December 16, 2009 by Dieuz Link to comment Share on other sites More sharing options...
Bert Posted December 16, 2009 Share Posted December 16, 2009 Why so many at once? Are you editing each one? just reading each one? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Dieuz Posted December 16, 2009 Author Share Posted December 16, 2009 (edited) 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 December 16, 2009 by Dieuz Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted December 16, 2009 Share Posted December 16, 2009 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) .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now