adding a flush to the buffers at the end of fileEcho()