File: Replace fopen/fclose with open/close