ASP - schrijfmethode


❮ Volledige TextStream-objectreferentie

De methode Write schrijft een opgegeven tekst naar een TextStream-bestand.

Opmerking: deze methode schrijft tekst naar het TextStream-bestand zonder spaties of regeleinden tussen elke tekenreeks.

Syntaxis

TextStreamObject.Write(text)

Parameter Description
text Required. The text to write to the file

Voorbeeld

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

❮ Volledige TextStream-objectreferentie