Sign in to Community
Sign in to view all badges
Hi, please help me with this.
The following code will print all the lines from a file into the workflow journal logs.
You can customize it to read only the first line
var file = new File( fName );
var arr = ;
for each(var line in file)
arr.push( line );
for ( var i = arr.length - 1; i >= 0; i-- )
logInfo( "###===== " + fName );
Hope this helps.
Yes, it is just use "vars.filename" instead of fName
Thanks for the code.
Can this code be modified to use a file downloaded from the file collector activity which is in temp db.
Could you please help me with that?