tutorial pengembangan web terbaru
 

ASP menulis Metode


<Complete Reference TextStream Object

Metode Menulis menulis teks tertentu ke file TextStream.

Note: Metode ini menulis teks ke file TextStream tanpa spasi atau garis istirahat antara setiap string.

Sintaksis

TextStreamObject.Write(text)

Parameter Deskripsi
text Wajib. teks untuk menulis ke file

Contoh

<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.CreateTextFile("c:\test.txt",true)
f.write("Hello World!")
f.write("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