File : Blob
File is a Blob that represents a file from the filesystem. You can get Files from the HTMLInputElement.files property or the DataTransferItem.getAsFile() method. Use FileReader to read the contents of a File.
Constructors
Creates a new File
. The elements of fileParts
must be of the types ArrayBuffer
, ArrayBufferView
, Blob
, or String
. If ending
is set to 'native'
, the line endings in the file will be converted to the system line endings, such as '\r\n'
for Windows or '\n'
for Mac.
Example:
RunResults:
Copyright © JavaScripture Contributors