• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Concatenate HTML Files

Participant ,
Oct 22, 2006 Oct 22, 2006

Copy link to clipboard

Copied

How do I concatenate multiple html files into a single file? Thank you!
TOPICS
Advanced techniques

Views

415

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Oct 22, 2006 Oct 22, 2006
Someone gave me this answer which worked. There are probably a couple of ways to approach this task. Thank you!

<cffile action="read" file="YourFile1" variable="file1">
<cffile action="read" file="YourFile2" variable="file2">

<cfset newfile = file1& file2>

<cffile action="write" addnewline="yes" file="myNewfile" output="#newfile#">

Votes

Translate

Translate
LEGEND ,
Oct 22, 2006 Oct 22, 2006

Copy link to clipboard

Copied

cffile action="append"

Have you considered how you are going to handle the redundant html, head, and body tags?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 22, 2006 Oct 22, 2006

Copy link to clipboard

Copied

LATEST
Someone gave me this answer which worked. There are probably a couple of ways to approach this task. Thank you!

<cffile action="read" file="YourFile1" variable="file1">
<cffile action="read" file="YourFile2" variable="file2">

<cfset newfile = file1& file2>

<cffile action="write" addnewline="yes" file="myNewfile" output="#newfile#">

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation