PDA

View Full Version : Construct text files



NewsArchive
10-18-2010, 02:21 AM
Hi Friedrich,

I need to construct text files that are slightly different depending on
which setup type is used. Similar to "Edit INI Files" but works with
regular text files (Edit INI Files does not work for this) and allows me to
specify condition. "Handle Text File Operation" only seems to be able to
add a single line, which is doable but cumbersome.

In Build Automator I have a "Write text to file" action (see
http://www.buildautomator.com/onlinemanual/write_text_to_file.htm) which
makes it very easy to write multiple lines in one go. Maybe SetupBuilder
could implement something like that if it doesn't already and I'm
overlooking it:)

Best regards,

--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
10-22-2010, 02:08 AM
Hi Friedrich,

> In Build Automator I have a "Write text to file" action (see
> http://www.buildautomator.com/onlinemanual/write_text_to_file.htm) which
> makes it very easy to write multiple lines in one go. Maybe SetupBuilder
> could implement something like that if it doesn't already and I'm
> overlooking it:)

Just pinging this subject as I have not had any response:)

Best regards,

--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
10-22-2010, 02:08 AM
Hi Arnór,

>
> Just pinging this subject as I have not had any response:)
>

Sorry for the delay. We are still brainstorming ideas for a new or updated
"Text File Operation" function.

Friedrich

NewsArchive
10-22-2010, 02:08 AM
Hi Friedrich,

> Sorry for the delay. We are still brainstorming ideas for a new or updated
> "Text File Operation" function.

Excellent:) In my case I needed to construct a parameters file to use when
starting a database engine and based on various setup options I needed to
change various lines in the parameter file. I used the text file action,
but I missed the flexibility I have in BA to construct a whole text file in
one go:)

Best regards,

--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
10-26-2010, 01:25 AM
Hi Friedrich

Some features that I would see as handy are something like:-

RetVal = InsertLines( STRING FileName, STRING Thetext, LONG AfterLineNumber=0, BYTE
Insert0Replace1=0)

Retval = DeleteLines(STRING FileName, LONG AfterLineNumber=0, LONG NumberOfLines=0)


John

NewsArchive
10-26-2010, 01:26 AM
Hi John,

> Some features that I would see as handy are something like:-
>
> RetVal = InsertLines( STRING FileName, STRING Thetext, LONG
> AfterLineNumber=0, BYTE
> Insert0Replace1=0)
>
> Retval = DeleteLines(STRING FileName, LONG AfterLineNumber=0, LONG
> NumberOfLines=0)

Interesting idea! Thank you for your suggestion.

Friedrich