NB1024
8 years agoNew Contributor
Reading a text file and passing to a Function
Hi All, Hopefully a quick question, Im trying to read a number from a text file and pass it to a function. The "ScanItem" function i am trying to pass the textfile data to already works f...
- 8 years ago
Hi,
If that is the case, you can do like below
function test() { ScanItem(getTextFromFile(<filepath>)) } function getTextFromFile(filepath) { if(filepath != null) { try { return aqFile.ReadWholeTextFile(filepath,20); } catch(e) { Log.Error(ex.stack); } } return null; }