I'm using Python on Windows to split a large file (few GBs) into many smaller files. The file is splitted by line's content, so I need all the small files to be opened in the same time, and the content to be written into them.
I got IOError: [Errno 24] Too many open files
when trying to open one of the files, and according to the debugger there are already 507 open files.
Is there a way to raise the maximum allowed open files?
I read about the ulimit
option in macOS, but couldn't find an equivalent option on Windows.
Also- why do I get this error after 507 files? Is this specifically the maximum?
Thanks