Skip to content

file.Open

Syntax

file.Open(filelocation, mode) → FileObject

Parameters

filelocationstring
Directory string to file, e.g. : "/folder/this.txt".
modestring
Mode to use for file.

Returns

Returns FileObject.

Notes

Note

Available modes are: "w" to write contents, "r" to read contents, "a" to add contents

Writing and appending a file not yet created will be automatically created

Appears in: File Writing