Add data to a file.