Originally posted by Gabor Topor
Under UNIX you may use 'file' command. It returns different values for ascii and xcoded files.
# The next 5 lines should be added to the end of the /etc/magic file
0 char 0x11 Progress X-Code
0 char 0x13 Progress V8 X-Code
0 long 0x56ced309 Progress R-Code
0 long 0x09d3ce56 Progress R-Code byte-swapped