ASP WriteBlankLines Method
The ASP WriteBlankLines Method is used to write a specified number of new-line characters to a Text File. It is an in-built method of the TextStream Object.
Syntax:
TextStreamObject.WriteBlankLines(numlines)
Parameter Values:
- numchar: Required attribute. It contains a numeric value that specifies the number of new-line characters which you want to be written to the text file.
Example Code: Below code illustrates the ASP WriteBlankLines Method.
ASP
<%
dim fs,f
set fs=Server.CreateObject( "Scripting.FileSystemObject" )
set f=fs.CreateTextFile( "d:\GFG.txt" ,true)
f.WriteLine( "Hello GeeksForGeeks" )
f.WriteBlankLines(2)
f.WriteLine( "A computer Science portal for Geeks" )
f.close
set f=nothing
set fs=nothing
%>
|
Output:
Hello GeeksForGeeks
A computer science portal for Geeks
Last Updated :
03 Mar, 2021
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...