Class IO.File

Represents a file in the filesystem

Constructors

File(string name)

Properties

size the size of the file
exists true if the file exists in the filesystem
folder true if the file is a folder

Methods

readAll() reads the entire contents of the file into a string
writeAll(string body)

Constructor Documentation


File(string name)

Parameters

Property Documentation


integer size

the size of the file


bool exists

true if the file exists in the filesystem


bool folder

true if the file is a folder

Method Documentation


string readAll()

reads the entire contents of the file into a string

Returns


void writeAll(string body)

Parameters



Creative Commons Logo This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.