save_dot function

Save DOT content to a file