FileSystem.GetFile
Method | |
---|---|
Module | FileSystem |
Library | Core |
Action | Returns the content of a text file. |
Parameters | |
Return values | If nothing is found then the method returns success but no rows, this is because a complex instruction script may want to continue to execute rather than fail abruptly. For each file found:
|
Example | FileSystem.GetFile(FilePath:"c:\\tmp\\i*.txt"); FileSystem.GetFile(FilePath:"c:\\tmp\\ip?.txt"); FileSystem.GetFile(FilePath:"%programdata%\\1E\\Client\\1E.Client.log"); |
Platforms |
|
Notes | Do not use on a binary file - the returned This method accepts ANSI encodings for files. Results are unpredictable for other encodings. For example, UCS2-LE (UTF16-LE) files will only be partially returned, resulting in text such as '1' in the Tachyon Explorer. There is a limit of up to 10MB on the size of the file to be fetched. If a file is this size or larger, then its contents will not be fetched. If no files are fetched due to this limit, the method fails. But it is not an error if no files match the |