silentb
06-13-2003, 02:16 PM
Ok so I'm just starting to learn ASP with the book "ASP Programming for the absolute beginner". I just got done reading about writing to and reading from a text file. I then attempted to try and make a page to read from a text file and put it on the screen. Here is what the book gave me as the way to do this:
<%
set Opeth=Server.CreateObject("Scripting.FileSystemObject")
set TfileStream=Opeth.OpenTextFile("opeth.txt")
TextFormat=TfileStream.ReadAll
%>
But when I run it on my account at DomainDLX I get an error about this line: set Opeth=Server.CreateObject("Scripting.FileSystemObject"). So I'm wondering if in the short time since the book was written if the syntax of doing such a thing has changed or if the author is just stupid and feeding me faulty code or if its the server at DomainDLX.
Any help on this would be greatly appreciated.
<%
set Opeth=Server.CreateObject("Scripting.FileSystemObject")
set TfileStream=Opeth.OpenTextFile("opeth.txt")
TextFormat=TfileStream.ReadAll
%>
But when I run it on my account at DomainDLX I get an error about this line: set Opeth=Server.CreateObject("Scripting.FileSystemObject"). So I'm wondering if in the short time since the book was written if the syntax of doing such a thing has changed or if the author is just stupid and feeding me faulty code or if its the server at DomainDLX.
Any help on this would be greatly appreciated.