reading a file and display its content with cout