What's the fastest way to determine if a text file is from Unix, Mac, or DOS?

The only way I know how to tell this information is judging by line breaks since all three platforms use different ones...

Is there another way? Preferably the quickest...