Nice one! (As in, nice bug, if bugs are ever nice.)
I'm still unclear as to how the script was able to run to completion on some, typically smaller input files - but not others given that almost no memory is required until this step.
It probably depended on buffering. If the file wasn't close properly, some small portion of the file could remain unwritten depending on the number and length of lines.
In reply to Re^9: Error when running on larger files
by BrowserUk
in thread Error when running on larger files
by K_Edw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |