read lines from file to list working