I am converting a Perl script to a C++ Class. A function requires files to be tested as to whether they are Text files or a Binary files. Is there a method for testing a file on a windows platform?
I am converting a Perl script to a C++ Class. A function requires files to be tested as to whether they are Text files or a Binary files. Is there a method for testing a file on a windows platform?
Hi Just use a CFile and read it. Go through the data using isalnum and as soon as you get a FALSE return and it is not a carriage return or line feed you'll know it is binary.