This will allow you to create .arff (Weka) from different text document using matlab.