GetString¶
Returns the file content as a string.
1 | |
Parameters¶
string id
The ID of the file.
string encoding optional
The encoding of the file. Optional. The default is 65001 (UTF-8).
Returns¶
The file content as a string.
Remarks¶
This function is used to retrieve text file contents. If the file is binary, consider using Files.GetBase64 to avoid corrupting the file content.
Read text content from repository files¶
1 2 3 4 | |