Skip to content

Instantly share code, notes, and snippets.

Created July 10, 2015 20:03
Show Gist options
  • Save anonymous/bfd285efc38ab6f3be65 to your computer and use it in GitHub Desktop.
Save anonymous/bfd285efc38ab6f3be65 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
loc.openBoxArr=[];
loc.struct1= {sku:'123',name:'Test1'};
loc.struct2= {sku:'456',name:'Test2'};
arrayAppend(loc.openBoxArr, loc.struct1);
arrayAppend(loc.openBoxArr, loc.struct2);
savecontent variable="loc.fileContents"{
for(line in loc.openBoxArr){
writeOutput("#line.sku#,#line.name#");
writeOutput(#chr(13)#&#chr(10)#);
}
};
writeDump(loc.fileContents);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment