Append data to a file.