Is file ASCII or WinWord (or other binary) ? 
Author Message
 Is file ASCII or WinWord (or other binary) ?

I need to determine if a given file is straight-test (ASCII) or WinWord.
Alternatively, I would be happy just confirming the file is ASCII. Any

I've searched without success through numerous WinWord files (with
Norton DiskEdit) for some common character sequence. I also tried to use
the "LIKE" operator as documented in VB3 to search for any
non-alphanumeric characters - I couldn't get the feature to work AT ALL.
(I'll be posting a separate question re. "LIKE").

Also, I am quite comfortable using API functions... if any are available
that apply to my predicament. (Must be applicable to Win 3.X for my
current project.)

I prefer a solution useable in VB3 but I also have VB4 if necessary.
(16-bit only for this application.)


   Thought for the day...
      If at first you don't succeed, call it v1.00.

Wed, 14 Jul 1999 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Read file info binary from a Winword-Document

2. File Type (Binary or ASCII)

3. Open Binary file as Ascii

4. Write non-ASCII chars into binary file

5. File conversion - Binary to ASCII

6. Searching ASCII in a binary file ?

7. Inet control file transfer mode (binary/ascii)

8. How I send a binary/ascii file using winsock

9. How to write non-ASCII chars into a binary file

10. Binary files - what am I doing wrong?

11. I am custom Traverse97 Programmer, seeking others.

12. Close file without ascii 13 and ascii 10?


Powered by phpBB® Forum Software