Use the getline function with the C++ string class : Text File « File « C++ ... #include ...
www.java2s.com