simple read from stdin into char array