How to display the file content of fstream to the console using a function

visit shbcf.ru