TextStream.WriteBlankLines() : TextStream : MS JScript JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » MS JScript » TextStream »

 

TextStream.WriteBlankLines()









Syntax








textstream.WriteBlankLines(num)



The WriteBlankLines() writes num newline characters to the text file.












<html>
    <script language="JScript">
    <!--
    var myFileSysObj = new ActiveXObject("Scripting.FileSystemObject")
    var myTextStream = myFileSysObj.OpenTextFile("c:\temp\test.txt"2true)

    myTextStream.Write("Hello, World!");
    myTextStream.WriteBlankLines(1);
    myTextStream.Write("Hello, World Again!");

    myTextStream.Close();
    -->
    </script>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» TextStream