Skip to content

Instantly share code, notes, and snippets.

@ryanguill
Forked from anonymous/trycf-gist.cfm
Last active August 29, 2015 14:24
Show Gist options
  • Save ryanguill/c38bd7e5fd1600a97264 to your computer and use it in GitHub Desktop.
Save ryanguill/c38bd7e5fd1600a97264 to your computer and use it in GitHub Desktop.
<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);
loc.fileContents = "";
for(line in loc.openBoxArr){
loc.fileContents &= line.sku & "," & line.name & chr(13) & chr(10);
}
};
</cfscript>
<pre>#loc.fileContents#</pre>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment