Ext.ReadTextFile( fileName )


Opens, reads, and closes file specified in fileName. Concurrent scripts can read the same file simultaneously.

Important: This function assumes that the file is encoded in UTF-8 and converts the contents to Unicode for internal use.



Use this argument to provide a fully qualified network path and file name. fileName can be any valid Windows file path, including a path to a remote machine. If the file path refers to a remote file, this function may fail due to permissions settings. The SBM Web server, which handles all SBM AppScript contexts except Notification, typically executes under a built-in system account that does not have permission to access remote files. Notification scripts can access remote files if the Notification Server has been launched by a user having remote file access permissions.

Return Values

Returns string holding entire contents of file referred to by string fileName.

Related Topics