dump some data to a file