You don't need to read all the lines from file to pick only first one, do you?