企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
| JScript  | [语言参考](#) | |-----|-----| # Skip 方法 在读取 **TextStream **文件时跳过指定个数的字符。 `object**.Skip(**characters**)**` #### 参数 object 必选项。总是某个 **TextStream **对象的名称。 characters 必选项。在读取文件时要跳过的字符个数。 #### 说明 被跳过的字符即被放弃。 下面的示例演示了**Skip** 方法的用法: ~~~ function SkipDemo() { ~~~     ~~~ var fso, f, r; ~~~ ~~~    var ForReading = 1, ForWriting = 2; ~~~ ~~~    fso = new ActiveXObject("Scripting.FileSystemObject") ~~~ ~~~    f = fso.OpenTextFile("c:\\testfile.txt", ForWriting, true); ~~~ ~~~    f.WriteLine("Hello world!"); ~~~ ~~~    f.WriteLine("JScript is fun"); ~~~ ~~~    f.Close(); ~~~ ~~~    f = fso.OpenTextFile("c:\\testfile.txt", ForReading); ~~~ ~~~    f.Skip(6); ~~~ ~~~    r = f.ReadLine(); ~~~ ~~~    return(r); ~~~ } #### 请参阅 [Close 方法](#) | [Read 方法](#) | [ReadAll 方法](#) | [ReadLine 方法](#) | [SkipLine 方法](#) | [Write 方法](#) | [WriteLine 方法](#) | [WriteBlankLines 方法](#)应用于: [TextStream 对象](#) [© 2000 Microsoft Corporation 版权所有。保留所有权利。使用规定。](#)