Hello,
is there a way to iterate over the file contents of the Read Text File action? Or do I need to use the OnReadLine event?
I was hoping to, in a loop, read each line into a variable and then append some text, with the variable contents, using the Write To Text File action.
i.e.
Read Text File (into variable FileContents)
Loop through each line of FileContents
Write To Text File "some text’ + line
Thanks,
Dave
Hi Dave,
You could use a File Contents Iterator, with then contains a String Replace, or Variable Set action followed by a Write To Text File which appends to an output file. I have attached an example project.
Read Text File - iterating over File Contents.zip
Thanks Jason!
I wasn’t aware of this action.
Dave