fopen(outfile, "rb") for Windows.