read nc file from stdin

Signed-off-by: xiehuc <xiehuc@gmail.com>