Revert "Refactored loading of text-files."

This reverts commit 300dab748b1acea0b0f2cfef60e3db4728f0d56a.