add file.read() api, read(n) will read n byte.