ASP WriteBlankLinesメソッド
完全な TextStream オブジェクトリファレンス
WriteBlankLines メソッドは、TextStream ファイルに指定された数の改行文字を書き込みます。
構文
TextStreamObject.WriteBlankLines(numlines)
| パラメータ | 説明 |
|---|---|
| numlines | 必須です。ファイルに書き込む改行文字の数。 |
例
<%
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
%>
上記のコードを実行すると、ファイル test.txt は次のようになります:
Hello World!
How are you today?
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
%>
上記のコードを実行すると、ファイル test.txt は次のようになります:
Hello World!
How are you today?
完全な TextStream オブジェクトリファレンス その他の拡張