Binary or ascii file?
Steven Adams
quickdry at users.sourceforge.net
Thu Sep 7 22:54:37 EDT 2000
More information about the Python-list mailing list
Thu Sep 7 22:54:37 EDT 2000
- Previous message (by thread): Binary or ascii file?
- Next message (by thread): Binary or ascii file?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
you might want to check out Mark Hammonds win32 extensions, it might be in there. it shouldn't be too hard to find out whether a file is binary or not, since AFAIK Windows sets a flag to show whether a file is an executable/binary or not. is that correct? I think I've read it somewhere.... all my executables and other binary files seem to be set as 'Archive' so I guess you could use 'win32file' to check if the file you're trying to access has FILE_ATTRIBUTE_ARCHIVE set. just speculation, but it might work Steven "Anders M Eriksson" <anders.eriksson at morateknikutveckling.se> wrote in message news:imefrs4r6svcpk7rsa617ps45u3eepi2hb at 4ax.com... > Hello! > > Working on windows I need to know if the file I'm about to open is > binary or ascii. > > How can I find out which the file is? > > // Anders >
- Previous message (by thread): Binary or ascii file?
- Next message (by thread): Binary or ascii file?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list