Added snippet for reading portions of text files