Get the App
SLTechnology News&Howtos  ›  Development  › 

The use of WriteBlankLines method under VBS

Shulou Source: shulou.com Published: 2022-06-03 19:39:00 11月12日 Update

This article introduces the relevant knowledge of "the use of WriteBlankLines method under VBS". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Writes the specified number of new line characters to the TextStream file.

Object.WriteBlankLines (lines)

Parameter object

Required. Expected the name of the TextStream object.

Lines

Required. The number of new line characters to write to the file.

Description

The following example illustrates how to use the WriteBlankLines method:

Function WriteBlankLinesToFile Const ForReading = 1, ForWriting = 2 Dim fso, f Set fso = CreateObject ("Scripting.FileSystemObject") Set f = fso.OpenTextFile ("c:\ testfile.txt", ForWriting, True) f.WriteBlankLines 2 f.WriteLine "Hi, hello!" Set f = fso.OpenTextFile ("c:\ testfile.txt", ForReading) WriteBlankLinesToFile = f.ReadAllEnd Function "the use of the WriteBlankLines method under VBS" ends here. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Method content character file more knowledge new line practical learned next hello example parameter name dilemma actual object situation number article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Linux Shulou Tech Info vpn Docker