Well, with the information you've added (the RAM on your box, the size of the files) it's clear that opening a file is not going to use up all your memory.
Did you try Corion's suggestion and remove all code except the loop through the files and the open() and close() statements?
From here it looks a lot like it's the rest of your code (that you didn't share) that is causing the problem. Once you've verified for yourself that it's not the open() call, you'll have to share the actual code you're using if you would like to get help.
In reply to Re^3: Alternate for "open"
by 1nickt
in thread Alternate for "open"
by ravi45722
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |