<!-- Creating the input item and setting the file attribute -->
<arc:set attr="input.file" value="[FilePath]" />
<!-- Calling fileRead and passing in the input item -->
<arc:call op="fileRead" in="input" out="result">]
<!-- Replacing all commas in the file with pipes and setting the new data on the output item -->
<arc:set attr="output.data" value="[result.file:data | replace(',','|')]" />
</arc:call>
<!-- Checking to make sure the output file has data, else throw an error -->
<arc:check attr="output.data" >
<arc:set attr="output.filename" value="[FileName]" />
<arc:push item="output" />
<arc:else>
<arc:throw code="NoData" desc="No file data." />
</arc:else>
</arc:check>