当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP WriteBlankLines 方法

ASP
ASP 介绍
ASP Install
ASP 语法
ASP 变量
ASP Procedures
ASP Forms
ASP Cookies
ASP Session
ASP Application
ASP #include
ASP Global.asa
ASP Send e-mail
ASP Response
ASP Request
ASP Application
ASP Session
ASP Server
ASP Error
ASP FileSystem
ASP TextStream

ASP WriteBlankLines 方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 313 ::
收藏到网摘: n/a

The WriteBlankLines method writes a specified number of new-line characters to a TextStream file.
ASP WriteBlankLines的作用是指定文本之间需要插入的行数。

Syntax
语法

TextStreamObject.WriteBlankLines(numlines)

Parameter
参数
Description
描述
numlines Required. The number of new-line characters to write to the file
必要参数。设定文本之间需要插入的行数

Example
举例

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

评论 (0) All

登陆 | 还没注册?