FSOÉú³É¾²Ì¬HTMLÎļþµÄʱºòÌ滻ģ°å±êÇ©Ò»Ö±ÊÇÒ»¸öºÜÂé·³µÄÎÊÌ⣬ÖÁÉÙÎÒÊÇÕâôÈÏΪµÄ£¬»¹Òª±ðÍâ×öÒ»¸öÄ£°å£¬Âé·³£¡£¬ÎÒ½ñÌì¿´¼ûÓÐÒ»¸ö·½·¨¿ÉÒÔ½â¾öÕâ¸öÎÊÌâ
ÈçÒ»¸öÕý³£µÄindex.aspÒ³Ã棬²¢ÇÒÓÃASP´úÂëµ÷³öÊý¾Ý¿âÖеÄÄÚÈÝ£¬Áí½¨Ò»¸ömakehtml.aspµÄÒ³Ã棬¼ÓÈëÒ»¸ötextareaÓò£¬¼ÙÉèΪname="body"£¬½«index.aspÔÚtextareaÀïµ÷³öÀ´£¬È磺
<textarea name="body"><!--#include file="index.asp"--></textarea>
½«Õâ¸ötextarea°üº¬ÔÚ±íµ¥ÖУ¬ÔÚ½ÓÊÕ±íµ¥Ò³Óô´½¨FSO¶ÔÏó£¬ÈçÏÂÉú³Éindex.htmlÎļþ£¡
<%
filename="../index.html"
if request("body")<>"" then
set fso = Server.CreateObject("Scripting.FileSystemObject")
set fout = fso.CreateTextFile(server.mappath(""&filename&""))
fout.write request.form("body")
fout.close
set fout=nothing
set fso=nothing
end if
%>
ÕâÑùindex.htmlÎļþ¾ÍÉú³ÉÁË£¬Á¬Ä£°å¶¼Óò»×Å£¬Ö»Òª½«Õý³£Çé¿öÏÂʹÓõÄASPÎļþ¶ÁÈ¡µ½textareaÀï¾Í¿ÉÒÔÁË£¬Ä¿Ç°ÉÐδ·¢ÏÖÎÊÌ⣡µ±È»Ç°ÌáÊÇ·þÎñÆ÷ÒªÖ§³ÖFSO