parse large text files with space and time considerations