O'Reilly logo

Active Server Pages 3.0 from Scratch by Nicholas Chase

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating Files on the Server: Formatting the News

So far, except for the file we just uploaded, any information we've been storing has been in the database. Now we're going to look at actually writing to the hard drive on the server.

The task at hand is to take the raw file that we uploaded in the last section and use it to create a formatted news file. The best way to do this—and the way requiring the least hassle for maintenance—would be to create a file that has our header and footer and a Server Side Include for the raw file in the middle.

To do this, we're going to use the fileSystemObject object. Yes, that's really what it's called. The fileSystemObject is part of the Scripting object we saw when we were creating a dictionary. The fileSystemObject ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required