vadasg / githubarchive-parser

10 stars 3 forks source link

Too many open files error : Ruby. #4

Closed okram closed 11 years ago

okram commented 12 years ago

I added this to the end of the .rb file:

outputFile.close()

and started the parse again.

vadasg commented 11 years ago

I've added

gzInputFile.close() jsonInputFile.close() outputFile.close()

to the end of the .rb file. All opened files should be closed properly now.

vadasg commented 11 years ago

Actually jsonInputFile.close() is unnecessary. I removed that one.