Learn R Programming

notebookutils (version 1.5.3)

mssparkutils.fs.head: Returns up to the first 'maxBytes' bytes of the given file as a String encoded in UTF-8.

Description

Returns up to the first 'maxBytes' bytes of the given file as a String encoded in UTF-8.

Usage

mssparkutils.fs.head(file, maxBytes = 65535)

Value

Empty string to mimic the returned content of file.

Arguments

file

FileSystem URI

maxBytes

Maximum number of bytes to read

Examples

Run this code
mssparkutils.fs.head("/tmp/my-folder/my-file")
mssparkutils.fs.head("/tmp/my-folder/my-file", 1000)

Run the code above in your browser using DataLab