Page 1 of 1

PIPE character

PostPosted: Wed Jan 06, 2016 12:32 pm
by dglojnar
How can I remove a PIPE character [#124] from text file via Neobook script ?

I try different approach without success...

SearchStr "[#124]" "[data]" "[a]" "" - no result
StrReplace "[data]" "["124]" ";" "[new_string ]" "" - no result

Any idea ?

Point is to make all with Neobook without external progs.


Best regards!
dglojnar

Re: PIPE character

PostPosted: Wed Jan 06, 2016 12:53 pm
by stu
This works for me on a TXT file:

Code: Select all
FileToVar "!D:\folder\pipestext.txt" "[tfile]"
StrReplace "[tfile]" "|" "" "[tfile]" ""
FileWrite "!D:\folder\pipestext.txt" "All" "[tfile]"

Re: PIPE character

PostPosted: Wed Jan 06, 2016 1:20 pm
by dglojnar
stu wrote:This works for me on a TXT file:

Code: Select all
FileToVar "!D:\folder\pipestext.txt" "[tfile]"
StrReplace "[tfile]" "|" "" "[tfile]" ""
FileWrite "!D:\folder\pipestext.txt" "All" "[tfile]"


Yep:-)))

Thank you very much, so easy and fast, I forgot FileToVar command:-)))
Once again, thanks:-))

Regards!
dglojnar