Skip to content

FileCSV

Hyomoto edited this page Oct 17, 2020 · 7 revisions
Jump To Go Back Arguments Methods Variables

FileCSV( filename, read_only?, new? )

Implements: File

no description provided

// no example provided

Arguments

Name Type Purpose
filename string the name of the file to open
read_only? bool optional: whether this file should allow writing to. Default: true
new? bool optional: whether this file should be blank. Default: false

Methods

Jump To top read write writeln save

read()

Returns: string ("string"), or undefined

Name Type Purpose
None

Reads the next value in the file, if it exists, otherwise returns undefined.


write( values... )

Returns: N/A 'undefined`

Name Type Purpose
values... mixed The values to write to the file

Writes value to the end of the file


writeln()

Returns: N/A 'undefined`

Name Type Purpose
None

Starts a new line in the file.


save( append )

Returns: N/A 'undefined`

Name Type Purpose
append bool Whether to append or rewrite the file.

Saves the file to disk. If append is true, entries will be appended after the last position the file was written from.


Variables

Jump To top
  • writeIndex - none provided
  • readIndex - none provided
Clone this wiki locally