How do I open a text file and extract the contents as a string?

Im looking to open a text file and extract the contents(in this case a famous speech) into a string of data so the allwords.m file can be used. Any ideas?

Categories

Asked:

on 25 Mar 2015

Edited:

on 26 Mar 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!