Some file writing

Signed-off-by: Spencer Deinum <spencerdeinum@gmail.com>