fixed binary/ascii file bug on windows
Merge pull request #1 from mikexocon/development

fixed binary/ascii file bug on windows