Reading Required Lines from the file

Only reading the lines that i want, and not loading all the file to
memory to subset. Could be vastly improoved.