demonstrates posix like IO