Binary or ascii file?
Anders M Eriksson
anders.eriksson at morateknikutveckling.se
Fri Sep 8 10:02:29 CEST 2000
On Thu, 07 Sep 2000 17:50:46 GMT, ge at nowhere.none (Grant Edwards)
>In article <imefrs4r6svcpk7rsa617ps45u3eepi2hb at 4ax.com>, Anders M Eriksson wrote:
>>Working on windows I need to know if the file I'm about to open is
>>binary or ascii.
>It's whichever you open it as. "Binary vs. ASCII" mode is
>determined by the method the program uses to handle the data in
>the file. A file itself isn't either one, it's just a stream of
OK, I probably didn't make any sence in my original question ;-)
I'm creating an app that uses FTP to send files. If the ftp-server is
on a unix based computer then it will not work to send Windows ASCII
files as binary (.by not work I mean that it's looks funny reading the
file on the unix system.)
I would like to be able to automaticle select binary or ASCII mode.
Which then means that I need to find out if the file is an ASCII file
More information about the Python-list