writeline,WriteLine 方法,WriteLine用法

Դhttp://www.6cu.com

ߣ论坛外链

15

2021-03-23 05:24:46

    向 TextStream 文件中写入给定的字符串和一个换行符。
    object.WriteLine([string])
    参数
    object
    必选项。总是一个 TextStream 对象的名称。
    string
    可选项。要写入该文件的文本。如果忽略该参数,则向该文件写入一个换行符。
    说明
    下面的示例演示了WriteLine 方法的用法:
    <code>var fso, f;
    fso = new ActiveXObject("Scripting.FileSystemObject");
    f = fso.CreateTextFile("c:\\testfile.txt", true);
    <span class="cfe"><b>f.WriteLine(</b></span>"This is a test."<span class="cfe"><b>)</b></span>;
    f.Close();</code>
    请参阅
    Write 方法 | WriteBlankLines 方法应用于: TextStream 对象

佭ϴý Ѷ Media8ý

在线客服

外链咨询

扫码加我微信

微信:xmbfjc

返回顶部