Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP WriteBlankLines Method

ASP WriteBlankLines Method


TextStream Object Reference Complete TextStream Object Reference Manual


The WriteBlankLines method writes a specified number of newline characters to a TextStream file.

Syntax

TextStreamObject.WriteBlankLines(numlines)

Parameters Description
numlines Required. The number of newline characters to write to the file.

Example

<%

dim fs,f

set fs=Server.CreateObject("Scripting.FileSystemObject")

set f=fs.CreateTextFile("c:\test.txt",true)

f.WriteLine("Hello World!")

f.WriteBlankLines(2)

f.WriteLine("How are you today?")

f.close

set f=nothing

set fs=nothing

%>

After executing the code above, the file test.txt looks like this:

Hello World!

How are you today?


TextStream Object Reference Complete TextStream Object Reference Manual