Hi,
Yes , dSeries has in-built file operation javascript functions that you can refer and there is a function file_readLines - https://techdocs.broadcom.com/us/en/ca-enterprise-software/intelligent-automation/ca-workload-automation-de/25-0/scheduling/using-javascript/built-in-functions/file-level-javascript-functions.html#concept.dita_1522a463a5b7b2485699f9ca54d618940d89511e_filereadLines
Please make sure the file is in the dSeries server machine.
Hope it helps!
Ravi Kiran