test read from file.