make it print file contents in stdout using nonblocking mode