Storages & Files WriteText
WriteText method

Writes string to the stream at the current position and remains after the last character written.

Syntax:

object.WriteText string [, option]

Parameters:

string - The string to write to the stream

option - Defines how the text will be written:
0 (default) - just write the string "as is"
1 - Write the string and place "new line" separator after it.

Examples:

Set sf = Server.CreateObject("newObjects.utilctls.SFMain")
Set file = sf.CreateFile("C:\MyFile.txt")
file.WriteText "Hello "
' Write the string
file.WriteText "world!",1
' Write the rest of the string and place end-of-line

Remarks:

The string will be written using ANSI or UNICODE depending on the unicodeText property. The line seprator is specified by the textLineSeparator property.

Applies to: SFStream object

newObjects Copyright 2001-2006 newObjects [ ]