Output to file.

Signed-off-by: Dawei Yang <davy.pristina@gmail.com>