Hi!
I have a template that merges a list of about 1000 lines of urls into a single variable(Variable1),
then the template takes another variable(Variable2) that contains many places that are supposed to be replaced with variable1.
e.g:
List 1 =
http://google.com
http://yahoo.com
http://bing.com
http://mozilla.com
http://CNN.com
(this file is about 100KB )
into variable 1:
"http://google.com;http://yahoo.com;http://bing.com;http://mozilla.com;http://CNN.com"
Variable 2 =
"hello my name is ZZZ and I know to play ZZZ" (this file is about 1MB )
then the process replaces ZZZ with Variable 1.
Yet, it seems that the process takes too much memory even though I have 4GB ram, and constant 2GB free..
Is there a way to make it work?
Thanks.
Edit:
I thought I solved it, instead of replacing all I just created a loop that replaces the first one every time till it gets to the end of the file.
But the same problem occurs after a few times that the program replaces the files, it probably creates a file bigger than 30mb. Is there a way to still do it ?
I have tried to add a pause of 3sec after each replacement to let the information flow before the next replacement occurs,yet it still didn't work.
I have a template that merges a list of about 1000 lines of urls into a single variable(Variable1),
then the template takes another variable(Variable2) that contains many places that are supposed to be replaced with variable1.
e.g:
List 1 =
http://google.com
http://yahoo.com
http://bing.com
http://mozilla.com
http://CNN.com
(this file is about 100KB )
into variable 1:
"http://google.com;http://yahoo.com;http://bing.com;http://mozilla.com;http://CNN.com"
Variable 2 =
"hello my name is ZZZ and I know to play ZZZ" (this file is about 1MB )
then the process replaces ZZZ with Variable 1.
Yet, it seems that the process takes too much memory even though I have 4GB ram, and constant 2GB free..
Is there a way to make it work?
Thanks.
Edit:
I thought I solved it, instead of replacing all I just created a loop that replaces the first one every time till it gets to the end of the file.
But the same problem occurs after a few times that the program replaces the files, it probably creates a file bigger than 30mb. Is there a way to still do it ?
I have tried to add a pause of 3sec after each replacement to let the information flow before the next replacement occurs,yet it still didn't work.