I wanted to create a quick tool to determine if a file is a text file or binary file. I'm not 100% sure this was right approach. However, early testing is showing that it's working.
My assumption is that from the first 128 bytes of a file that you can dermine its type.
I'm going to throw more files at it and train it up some more.