Convert to ARC and get rid of f{open,read,write}.