HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

ASP WriteBlankLines Method


TextStream Object Reference Complete TextStream Object Reference

The WriteBlankLines method writes a specified number of new-line characters to a TextStream file.

Syntax

TextStreamObject.WriteBlankLines(numlines)

Parameter Description
numlines Required. The number of new-line 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
%>

The file test.txt will look like this after executing the code above:

Hello World!


How are you today?


TextStream Object Reference Complete TextStream Object Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE