DOC: Incorrect Code Sample in the InterDev DocumentationLast reviewed: December 11, 1997Article ID: Q166888 |
The information in this article applies to:
SUMMARYIn the "User's Guide, Server-Side Scripting" documentation under the topic "Using The Server Object" in the section "Reading from and Writing to Files" there is an incorrect code sample. The existing code is as follows:
<% Set OutStream = Server.CreateObject("MS.TextStream") OutStream.CreateTextFile "tsworks.txt", , True OutStream.WriteLine "This line is written to the file." %>The correct code is as follows:
<% Set fs = CreateObject("Scripting.FileSystemObject") Set a = fs.CreateTextFile("c:\testfile.txt", True) a.WriteLine("This is a test.") a.Close %> REFERENCESFor the latest Knowledge Base articles and other support information on Visual InterDev and Active Server Pages, see the following page on the Microsoft Technical Support site:
http://support.microsoft.com/support/vinterdev/ Keywords : VIScripting Version : 1.0 Platform : WINDOWS Issue type : kbdocerr |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |