..
The method of WriteBlankLines' TextStream writes a specified number of blank lines in a file TextStream.
WriteBlankLines accepts a single parameter, ie the number of lines to add vuotye.
Here's an example:
dim fs, f
'I create an instance of the FSO
Set fs = Server.CreateObject ("Scripting.FileSystemObject")
'I open the file
Set F = fs.CreateTextFile ("c: \ test.txt", true)
'I write a line of text ...
f.WriteLine ("Hello!")
'Add two blank lines ...
f.WriteBlankLines (2)
'I write another line of text
f.WriteLine ("How are you?")
'Close
f.close
'I cleaned
Set F = Nothing
Set fs = Nothing
The file test.txt will look like this after running the code above:
Hello! How are you?
| |
ASP (Advanced)
Full course for creating dynamic Web sites. From 39 €. |
| |
ASP Zero (Ebook)
Learning Microsoft ASP and VBScript from scratch. At only 29 €. |
| |
ASP and Access (Ebook)
Managing a MS Access database with ASP. At only 29 €. |