PDA

View Full Version : Large message to text file?



NewsArchive
01-04-2012, 07:08 AM
Hi Friedrich,

I have a variable %MY_MESSAGE% which has some lines of text.
I use \n to generate a <CR>.
After that I use the "Display Message" with %MY_MESSAGE% variable.
The message shows perfectly with all text and new lines.

BUT I also want to write this "big" %MY_MESSAGE% variable to a text file.
So I use:
Text File: Create File "file.txt"
Text File: Insert Line "" to "file.txt" -- %MY_MESSAGE%

BUT I only get the first 125 chars in file.txt.
And I see \n and not a nice <CR>!

So the question is:
How do I write a big %MY_MESSAGE% variable to a text file with nice <CR>
lines?

--
Best regards,
Jeffrey

NewsArchive
01-04-2012, 07:08 AM
Hi Jeffrey,

There is no built-in function in SetupBuilder to write multiple-lines to a
text file in one call.

The function "Text File: Insert Line" can only write a (single) line. So
you have to find a way to split the string up into multiple pieces.

Friedrich

NewsArchive
01-04-2012, 07:08 AM
Hi Friedrich,

Ok, no problem.

Best regards,
Jeffrey

NewsArchive
01-04-2012, 07:09 AM
Hi Jeffrey,

>
> Ok, no problem.
>

But I think it would be a nice addition. I put it on the wish list.

Thanks,
Friedrich

NewsArchive
01-04-2012, 07:09 AM
Yep, would be very handy!
Thanks.

Best regards,
Jeffrey

NewsArchive
01-05-2012, 02:40 AM
Or use a support dll

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve