Mega Code Archive

 
Categories / JavaScript Tutorial / MS JScript
 

TextStream Write()

Syntax textstream.Write(string) The Write() method writes a string to the text file. <html>     <script language="JScript">     <!--     var myFileSysObj = new ActiveXObject("Scripting.FileSystemObject")     var myTextStream = myFileSysObj.OpenTextFile("c:\\temp\\test.txt", 2, true)     myTextStream.Write("Hello, World!");     myTextStream.Close();     -->     </script> </html>