//================================================================================ // The getline function removes the trailing \n from the stream and discards it. // A. Fischer, April 2001 file: getline.cpp //-------------------------------------------------------------------------------- #include "tools.hpp" void use_getline( istream& instr ) { cout <<"\nUsing getline to read entire lines.\n"; char buf[80]; while (instr.good()) { instr.getline( buf, 80 ); cout <