detect unix or dos line endings



How can I use Maxima to determine whether a text
file has unix (LF = ascii 10) 
or dos line endings (CR = ascii 13, LF)?

Ted Woollett