Prepend data to a file.