E
Elmo Watson
I want my application to load any file that is text based (php, txt, rtf,
asp, etc) - - just not any binary file
In the Open file dialog, that's easy, but I want users to be able to load
the files by drag/drop - - so therefore, I will need to check for the types
of files.
I could go through the different filetypes
if FILENAME.endswith(".txt"), etc, but that would end up being pretty
ridiculous
How can I check the file, as it comes in, as to whether it's text based or
binary?
asp, etc) - - just not any binary file
In the Open file dialog, that's easy, but I want users to be able to load
the files by drag/drop - - so therefore, I will need to check for the types
of files.
I could go through the different filetypes
if FILENAME.endswith(".txt"), etc, but that would end up being pretty
ridiculous
How can I check the file, as it comes in, as to whether it's text based or
binary?