UNPKG

@testcomplete/filesystemutil

Version:

A file system interface to let scripts working with TestComplete & NodeJS at the same time

8 lines (6 loc) 297 B
// Check for NodeJS. If NodeJS, require need relative path let sPrePath = typeof process !== 'undefined' ? './' : ''; let fs = require(`${sPrePath}FileSystemUtil`); function aReadFile () { Log.message('Reading Local file "./MyFileSource.txt" : ' + fs().read('./MyFileSource.txt')); }