Returns a string containing the contents of the file in the site's file system.
Syntax
Smartsite SXML | Copy Code |
---|---|
string filesystem.readtext(string path) string filesystem.readtext(string path, enum encoding) |
Parameters
Name | Data Type | Description |
---|---|---|
path | String | Name of the file. |
encoding | Enum |
Character encoding used in the file
Enum values:
|
Return Value
Data Type | Description |
---|---|
String | A string containing the file contents. |