Skip to main content

Response.write

writefileon_existing_file

Group: Output
Aliases: to_file

Documentation

Write response body to a File.

Arguments

  • file: The file to write the body to.
  • on_existing_file: Specifies how to proceed if the file already exists.

Examples

Write the contents of the request body to a scratch file on disk. The

file will be created if it does not exist, and will be overwritten if it does.

      import Standard.Examples

example_write =
Data.fetch Examples.geo_data_url . write Examples.scratch_file