Read text into matrix