For those who care, I found a much better way....

<cfscript>
 fso = CreateObject("COM", "Scripting.FileSystemObject");
 a = fso.CreateTextFile("c:\testfile.txt", true, true);
 a.WriteLine(variables.test);
 a.Close();
</cfscript>

CreateTextFile("path/filename.ext", overwrite file [true|false], unicode
[true|false])

Works great and fast.

Rick



----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, March 08, 2001 1:34 AM
Subject: CFFILE and Unicode?


> Hello,
>
> Correct me if I"m wrong, but cffile doesn't have an option to write to a
> file in Unicode, does it?
>
> My work around idea is to have CF send command line arguments to notepad.
> The win2k version will save in Unicode.
>
> It's late and I can't seem to find a command line reference to do this.
Any
> ideas?
>
> Thanks,
>
> Rick
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to