The last couple weeks have brought book reviews, sample
chapters, and plenty of updates, but very little in the way
of new code... well the code is back this week with three
new ASP.NET samples. The first of these is a sample on
reading and writing text files from an ASP.NET web page.
The sample loads a page with two buttons. One loads the
contents of the text file into a label on the page while
the other writes some new text to the text file. It's a
little more complex then the classic ASP way of doing
things, but you'll get the hang of it pretty fast.
As with any script that deals with the file system, you'll
need to be sure you've got your NTFS permissions set to allow
changes to the text file or the script will throw an error.