The only difference I can discern is in readability for maintenance
purposes. If the file is not likely to exist, then CreateTextFile is
somewhat more descriptive of the actual function. It also implies write
and never read status for the file. OpenAsTextStream might be
preferable in an application where a known existing file is expected,
even when the intent is to overwrite it. Other than that, I suspect the
same Windows API is invoked when (over) writing a file (though I don't
'know' this).
Just to complicate things a bit, you can also consider the use of the
OpenTextFile method, which has additional parameter options ;o)
Tom Lavedas
-----------
http://www.pressroom.com/~tglbatch/