mssparkutils.fs.append: Append the given String to a file, encoded in UTF-8.

mssparkutils.fs.appendR Documentation

Append the given String to a file, encoded in UTF-8.

Description

Append the given String to a file, encoded in UTF-8.

Usage

mssparkutils.fs.append(file, content, createFileIfNotExists = FALSE)

Arguments

file

FileSystem URI

content

Content needs to be append to file, encoded in System default charset.

createFileIfNotExists

If set to true, will firstly try to create file if not exists.

Value

FALSE to mimic the result if file content append fail.

Examples

mssparkutils.fs.append("/tmp/my-file", "Hello world!")
mssparkutils.fs.append("/tmp/my-file", "Hello world!", TRUE)


notebookutils documentation built on May 29, 2024, 12:08 p.m.