TextFile Class

Extends Resource
Module: Resources

Text file resource can be used to store data or code.

Text file data can be used to store information to be consumend by the application or runtime code that can be imported by scripts.

Item Index

Methods

Methods

fileIsText

(
  • file
)
Boolean static

Check if a file name refers to a text file.

Parameters:

  • file File

Returns:

Boolean:

True if the file is text.

toJSON

(
  • meta
)
Object

Serialize File resource data to json.

Parameters:

  • meta Meta

Returns:

Object:

data