fopen changed to open