Parse text files by the given parameters.