os.read_file reads an entire file into a bytes value. For streaming access, os.open returns a file object with a read(buf) method.
fmt := import("fmt")
os := import("os")
f0 := os.create("/tmp/tengo_read.txt")
f0.write_string("Hello from Tengo!\nSecond line.\n")
content := os.read_file("/tmp/tengo_read.txt")
fmt.println(string(content))
f := os.open("/tmp/tengo_read.txt")
buf := bytes(5)
f.read(buf)
fmt.println(string(buf))
f.close()
os.remove("/tmp/tengo_read.txt")
try it
Hello from Tengo! Second line. Hello