Announcement

Collapse
No announcement yet.

Create/replace action

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Create/replace action

    Hi all,

    I have never created a text file with a create/replace action to replace HTML pages. Furthermore, I am trying to fathom the true function/purpose of this process. Are there any examples that I could look at?

    My apologies for the dumb newbie Qs!

    Thanks!

    Nick.

  • #2
    Re: Create/replace action

    Well let's say our HTML page looks like this:

    <HTML>
    <HEAD>
    </HEAD>
    <BODY text="#000000">
    Hello World
    <BODY>
    </HTML>

    Then you could store that in a variable, and save the contents of that variable to a file, i.e. hello.html using TEXT FILE > WRITE action. You can take it a step further by storing this in your variable:

    <HTML>
    <HEAD>
    </HEAD>
    <BODY text="#000000">
    ###MYMESSAGE###
    <BODY>
    </HTML>

    instead and then using a STRING > REPLACE action to change the value of ###MYMESSAGE### to whatever you like, i.e. "Hello World" at runtime, then the variable (with the message value now replaced) can be saved as an .html page.

    Corey Milner
    Creative Director, Indigo Rose Software

    Comment

    Working...
    X