SBM AppScript Reference → Programming SBM AppScript → Extension Functions → Ext.ReadTextFile( fileName )
Opens, reads, and closes file specified in fileName. Concurrent scripts can read the same file simultaneously.
fileName
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.
Returns string holding entire contents of file referred to by string fileName.
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.