0 Replies Latest reply on Nov 26, 2007 8:27 AM by peaveyT60

    Save links as .htm files

    peaveyT60 Level 1
      Hi,
      I'm using cfhttp to grab data from a web site search. what i want to do is to save the results (links) as an .htm file (or i could do another file type if .htm can't be done). the cfhttp isn't a problem. my dilemma is how can i then loop through the links, saving each one as a seperate .htm file? could this even be done?

      for example, the output from a cfhttp would look something like this:

      <tr><td>link1</td></tr>
      <tr><td>link2</td></tr>
      <tr><td>link3</td></tr>
      <tr><td>link4</td></tr>

      i want to strip out the links, saving each of them as an individual .htm file to c:\myLinks. i want it as painless as possible. i dunno if there would be a way to just autosave to different html files, or to simply save the links to say, different sheets in an ms excel file.