FileResource class
Class which represents a file as a resource.
- Extends
Constructors
File |
Initialize a new instance of the |
Properties
full |
The full path to the resource on disk |
id | Resource id. |
Methods
read |
Read text content of a file resource. |
Constructor Details
FileResource(string)
Initialize a new instance of the FileResouce
class.
new FileResource(path: string)
Parameters
- path
-
string
Path to file.
Property Details
fullName
The full path to the resource on disk
string fullName
Property Value
string
The full path to the resource.
id
Resource id.
string id
Property Value
string
The resource id.
Method Details
readText()
Read text content of a file resource.
function readText(): string
Returns
string
Read content text.