General information
Category:
Coding, syntax & commands
Hi Neetu,
I'm assuming you wanted to add the pipe symbol to the end of each line, not replace the last data value with the pipe:
you could read cTempfile into a string with filetostr()
and then use strtran() to substitute the chr(13)+chr(10)
with '|'+chr(13)+chr(10)
and then write the result back to the file
cTempString=filetostr(cTempFile)
cTempString=strtran(cTempString,chr(13)+chr(10),'|'+chr(13)+chr(10))
strtofile(cTempString,cTempFile2)
>Hi -
>
>I am trying to create a pipe delimited file with the following command.
>
>Copy To (cTempFile) Deli With Character "|"
>
>I would like a end delimiter on every record to be a pipe instead of the value in the last field. Is there a way to do this? Please help.
>
>Thank you
>Neetu Kumar
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only