Using getline to get a variable from a file