• As you are writing to a new file and not closing the last file - you are running out of buffers. If you close the file when you are done with it - or write the same file I don't think you would have an issue.

About

Avatar for Wilberforce @Wilberforce started