Skip to content

FileHandler Class

wagyourtail edited this page Sep 20, 2020 · 3 revisions

1.1.8+

The File Handler Methods Are As Follows:

FileHandler(String) 1.1.8+

Example: new FileHandler(path)

Initialize, to call this it is easiest to refer to FS

write(String|Byte[]) 1.1.8+

Example: file.write(content)

Write string to file.

append(String) 1.1.8+

Example: file.append(content)

Append string to file.

read() 1.1.8+

Example: file.read()

returns the file contents as a String.

readBytes() 1.2.6

Example: file.readBytes()

returns a byte[] of the file contents.

read file, returns a string.

Clone this wiki locally