⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vbs412.htm

📁 VBScript 是一种脚本语言
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><HTML><HEAD><TITLE>TextStream Object</TITLE> 
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso8859-1">
<META NAME="MS.LOCALE" CONTENT="EN-US">
<META NAME="PRODUCT" CONTENT="Visual Basic Scripting Edition">
<META NAME="TECHNOLOGY" CONTENT="SCRIPTING">
<META NAME="CATEGORY" CONTENT="Language Reference">

<META NAME="Keywords" CONTENT=""><META NAME="Description" CONTENT="TextStream Object"></HEAD>

<BODY BGCOLOR=FFFFFF LINK=#0033CC>
<!--TOOLBAR_START-->
<!--TOOLBAR_EXEMPT-->
<!--TOOLBAR_END-->
<FONT FACE="Verdana, Arial, Helvetica" SIZE=2>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR VALIGN=TOP><TD WIDTH=360>
<FONT SIZE=1 COLOR=#660033>Microsoft&#174; Visual Basic&#174; Scripting Edition</FONT><BR>
<FONT SIZE=5 COLOR=#660033><B>TextStream Object</B></FONT>

</TD>
<TD ALIGN=RIGHT>
<FONT SIZE=2>&nbsp;<A HREF="vbstoc.htm">Language&nbsp;Reference</A>&nbsp;<BR>
<A HREF="vbs16.htm">Version&nbsp;2</A>&nbsp;<P></FONT>
</TD></TR></TABLE> 

<FONT SIZE=2><P>
<A HREF="vbs413.htm">See Also</A>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<A HREF="vbs415.htm">Properties</A>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<A HREF="vbs414.htm">Methods</A>


<HR noshade SIZE=1>
<H5>Description</H5>
<BLOCKQUOTE>Facilitates sequential access to file.</BLOCKQUOTE>

<H5>Syntax</H5>
<BLOCKQUOTE><b>TextStream.</b>{<i>property</i> | <i>method</i>}<p>
The <i>property</i> and <i>method</i> arguments can be any of the properties and methods associated with the <b>TextStream</b> object. Note that in actual usage <b>TextStream</b> is replaced by a variable placeholder representing the <b>TextStream</b> object returned from the <b>FileSystemObject</b>.
</BLOCKQUOTE>

<H5>Remarks</H5>
<BLOCKQUOTE>
In the following code, <FONT FACE="Courier New" SIZE=4>a</FONT> is the <b>TextStream</b> object returned by the <b>CreateTextFile</b> method on the <b>FileSystemObject</b>:
<BLOCKQUOTE><PRE><FONT FACE="Courier New" SIZE=3>
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("c:\testfile.txt", True)
a.WriteLine("This is a test.")
a.Close
</FONT></PRE></BLOCKQUOTE>
<b>WriteLine</b> and <b>Close</b> are two methods of the <b>TextStream</b> Object.

</BLOCKQUOTE>


<hr noshade size=1>
<p align=center><em><a href="../../common/colegal.htm">&copy; 1997 by Microsoft Corporation. All rights reserved.</a></em></p> 
</FONT></FONT></BODY></HTML>























































































⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -