Hi, I am stuck on exercise 8.1 (at section 8.1.2) p314 of C++ Primer 5th\nEdition (Lippman, Lajoie, Moo). The exercise says:\n\n"Write a function that takes and returns an istream&. The function\nshould read the stream until it hits end-of-file. The function should\nprint what it reads to the standard output. Reset the stream so that it\nis valid before returning the stream."\n\nSuppose I have declared:\n\nistream& read(istream&);\n\nHow do I go about defining this function?\nThanks in advance.