Changed FILE* based operations to QFile. Apparently Android doesn't like fopen(). Former-commit-id: 368af59ca8
368af59ca8