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 ...

Get Active Server Pages 3.0 from Scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.