How to remove the last line in flat file using Arc script ??
The below script is to add the “END” on the last line but I need to remove the END which is present in the last line of a Flat-file??
<arc:set attr="file.file" value="afilepath]" />
<arc:call op="fileRead" item="file">
<arc:set attr="tmp.originalBody">dfile.file:data]</arc:set>
</arc:call>
<arc:unset attr="output.data">ttmp.originalBody]END</arc:set>
<arc:unset attr="output.filename" value="940_enow()]" />
<arc:push item="output" />