fileRead with cin