using read()