VBScript » TextStream » WriteLine

Version: 2.0

Syntax:
object.WriteLine([string])

Writes a supplied string to a TextStream file, followed by a new line character.

This method writes a supplied string to a TextStream file, followed by a new line character.

Examples

Code:
<%
Dim filesys, testfile
Set filesys = CreateObject("Scripting.FileSystemObject")
Set testfile= filesys.CreateTextFile("c:\somefile.txt", True)
testfile.WriteLine "Your text goes here."
testfile.Close
%>