ASP書き込みメソッド
❮完全なTextStreamオブジェクトリファレンス
Writeメソッドは、指定されたテキストをTextStreamファイルに書き込みます。
注:このメソッドは、各文字列の間にスペースや改行を入れずに、TextStreamファイルにテキストを書き込みます。
構文
TextStreamObject.Write(text)
Parameter | Description |
---|---|
text | Required. The text to write to the file |
例
<%
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?
❮完全なTextStreamオブジェクトリファレンス