Yes, exactly danpost. The variable maxLevel can be replaced by the last line number of your document to make it read the entire document. In this way, the string array it returns will be ordered in such a way that String returned from readText() will be the first line of the document, etc. until the maxLevel (last line of the document)