Skip to main content
September 2, 2009
Question

cffile

  • September 2, 2009
  • 2 replies
  • 628 views

<cffile action="write" file="#currentDirectory#\#listfirst(titl, 2)##listfirst(subj, 2)##listfirst(clip_by, 2)#_#GETNEWCLIPID#.cfm"

output="

here I want to past entire file with many "" "" like

<script type="text/javascript">
function MM_CheckFlashVersion(reqVerStr,msg){
  with(navigator){
    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){ 
      var flashVer = -1;
      if (plugins && plugins.length > 0){
        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
        if (desc == "") flashVer = -1;
        else{
          var descArr = desc.split(" ");
          var tempArrMajor = descArr[2].split(".");

">

red fonts has many inverted comas that gives error. How can I do this task?

I also did try with creating variable for these entire texts

like

<cfset contentforfile = "entiretext "" "" "etc" "etc" I wanted">

<output = "#contentforfile#"> but it didnot work.

can any one help me how can I make one block that can be used to create entire content in writing new file?

    This topic has been closed for replies.

    2 replies

    Inspiring
    September 2, 2009

    I recommend reading up on how <cfsavecontent> will enable you to save large strings of data as a variable.

    http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_r-s_10.html#1844410

    --

    Adam

    Inspiring
    September 2, 2009

    If the text contains double quotes, surround it with single quotes in your cfset tag.