The following Matlab project contains the source code and Matlab examples used for any text (file) you give it, readtext returns an array of the contents. you can chose delimiter etc. . Usage: [data, result]= readtext(source, delimiter, comment, quotes, options) Whatever text (file) you give it, readtext returns an array of the contents (or send me a bug report).
The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.