Easily read from stdin or files.