General information
Category:
Coding, syntax & commands
Have you examined the result of the FILETOSTR() call before the STRTRAN()? I'm sure it reads the file faithfully but if not, that would explain the problem.
zahid
>I have a large rtf file (~300KB) with a bunch of "slugs" in it. What I mean by slugs are variables surrounded by "<<" and ">>". So the file would look something like :
>
>blah blah blah <> blah blah
>
>
>I use filetostr to put the entire file into a string then I use strtran to find and replace the slugs with values. The problem is that strtran doesn't seem to replacing all the slugs. It will replace some of them but not all even when the slugs are exactly the same.
>
>Is there a better way to do what I need? Is there a way around this apparent strtran problem?
>
>Thanks
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