ASP WriteBlankLinesMethod


TextStream 对象参考手册Complete TextStream Object Reference

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 as follows:

Hello World!


How are you today?


TextStream 对象参考手册Complete TextStream Object Reference Other Extensions