Write a fill-contents file using the filename