Learn R Programming

notebookutils (version 1.5.3)

mssparkutils.fs.put: Writes the given String out to a file, encoded in UTF-8.

Description

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

Usage

mssparkutils.fs.put(file, content, overwrite = FALSE)

Value

FALSE to mimic the result of file put operation fail.

Arguments

file

FileSystem URI.

content

Content of file to write, encoded in System default charset.

overwrite

If set to TRUE, the file will be overwritten if it existed already. Note that if overwrite is TRUE and the the write fails, the original file. may still be deleted.

Examples

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

Run the code above in your browser using DataLab