read from stdin with 4096-sized buffer