in reply to Re: Opening a text file
in thread Opening a text file

print "Content-Type: text/plain\n\n"; print "the content of your text file here...";
that should get you going.
luckily it's not possible to force the client's machine to open notepad; besides that, on my machine there is no notepad.