Commits

Bouke Haarsma committed c61b4a0ff71
[Foundation] Use NSFileHandle instead of fopen Instead of passing file descriptors, references to NSFileHandle are passed around. `fclose` has been replaced by `closeFile()`, however not strictly necessary as NSFileHandle automatically closes the pointer on deallocation. Rationale for reading the whole file when enumerating the lines: * Iterating over a File instance would read using a buffer, however most usages would concatenate the chunks and work on the complete file (no memory savings). * Files that are read are mostly small files, should not take lots of memory.