avoid warning regarding non-const format string
use read()'s return value