Hi Guys, A couple of years back, I had do something similar. I had to end a file with two null characters.
I did it with cffile, something like: <cffile action="append" filename="file.dat" output="#somestring##chr(0)##chr(0)#"> I nearly came unstuck when I (too) tried to test the result by reading the file back into a string and testing the contents - the nulls were not there! Apparently, CF is very bad at dealing with NULLs in strings. I suspect it is has something to do with what Adam mentioned about treating NULL as an end-of-string mark. But before I pulled *all* of my hair out, I opened up the file with a binary editor (MS Visual Studio has a good one) the NULLS were right there as expected. So maybe if all you need to do is to write to some data file, then just go and do it. Hopefully it will go to disk before CF buggers it up too much! ;-) Cheers, Mike. --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
