Function create_file

Source
pub fn create_file<'a>(
    custom_filename: &'a str,
    writer: Box<dyn WriteSeek + 'a>,
    encoding: Encoding,
    output_encoding: Encoding,
    yaml: bool,
) -> Result<()>
Available on crate feature artemis only.
Expand description

Creates a new ASB file.

  • custom_filename - The path ot the input file.
  • writer - The writer to write the ASB script.
  • encoding - The encoding used for the ASB script.
  • output_encoding - The encoding used for the input file.
  • yaml - Whether to use YAML format instead of JSON for the input file.