How to handle/process large text of text file?