Add dump to file

Signed-off-by: crazymooner <crazymooner@gmail.com>