Whoops, shouldn't mix fd and FILE* methods