ASP WriteBlankLines Method

Definition and Usage

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

Syntax:

TextStreamObject.WriteBlankLines(numlines)
Tattalinji Rarrufi
numlines Zaɗaɗa. Iya ce zaɗaɗa na hanyar wucewar ɗaya da ake kirawa cikin fayil.

tarin

<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject") 
set f=fs.CreateTextFile("c:\test.txt",true)
f.WriteLine("Sannu duniya!")
f.WriteBlankLines(2)
f.WriteLine("Zaiye kama na yau?")
f.close
set f=nothing
set fs=nothing
%>

After executing the above code, the file test.txt is as follows:

Hello World!
How are you today?