[MSDOS]: Use binary file modes for non-text side of pipe. (main): Use fclose to close file opened by fopen.