added helper to read whole lines in ifstreams