tutorial pengembangan web terbaru
 

ASP Cara WriteBlankLines


<Complete Reference TextStream Object

Metode WriteBlankLines menulis sejumlah tertentu dari karakter baru-line ke file TextStream.

Sintaksis

TextStreamObject.WriteBlankLines(numlines)

Parameter Deskripsi
numlines Wajib. Jumlah karakter baru-line untuk menulis ke file

Contoh

<%
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?

<Complete Reference TextStream Object