Learn R Programming

notebookutils (version 1.5.3)

mssparkutils.fs.append: 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)

Value

FALSE to mimic the result if file content append fail.

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.

Examples

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

Run the code above in your browser using DataLab