asp ²Ù×÷ txt Îı¾Îļþ
´´½¨Ö¸¶¨µÄÎļþÃû²¢·µ»ØÒ»¸ö TextStream ¶ÔÏ󣬿ÉÒÔʹÓÃÕâ¸ö¶ÔÏó¶ÔÎļþ½øÐжÁд¡£
object.CreateTextFile(filename[, overwrite[, unicode]])
²ÎÊý
object
±ØÑ¡ÏӦΪ FileSystemObject »ò Folder ¶ÔÏóµÄÃû³Æ¡£
filename
±ØÑ¡Ïî¡£Ö¸Ã÷ËùÒª´´½¨ÎļþµÄ×Ö·û´®±í´ïʽ¡£
overwrite
¿ÉÑ¡Ïî¡£Boolean Öµ£¬Ö¸Ã÷ÄÜ·ñ¸²¸ÇÒÑÓÐÎļþ¡£Èç¹ûÎļþ¿ÉÒÔ¸²¸Ç£¬ÔòֵΪ true £¬·ñÔòΪ false¡£Èç¹ûºöÂÔ£¬ÔòÒÑÓÐÎļþ²»Äܱ»¸²¸Ç¡£
unicode
¿ÉÑ¡Ïî¡£Boolean Öµ£¬Ö¸Ã÷ÎļþÊÇ·ñÒÔ Unicode »ò ASCII Îļþ·½Ê½´´½¨¡£Èç¹ûÎļþ×÷Ϊ Unicode Îļþ´´½¨£¬ÔòֵΪ true £¬Èç¹û×÷Ϊ ASCII Îļþ´´½¨£¬ÔòΪ false¡£Èç¹ûºöÂÔ£¬Ôò¼Ù¶¨Îª ASCII Îļþ¡£
˵Ã÷
ÏÂÃæµÄ´úÂë˵Ã÷ÁËÈçºÎʹÓà CreateTextFile ·½·¨À´´´½¨ºÍ´ò¿ªÒ»¸öÎı¾Îļþ¡£
[JScript]
var fso = new ActiveXObject("Scripting.FileSystemObject");
var a = fso.CreateTextFile("c:\\testfile.txt", true);
a.WriteLine("This is a test.");
a.Close();
[VBScript]
Sub CreateAfile
Dim fso, MyFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile = fso.CreateTextFile("c:\testfile.txt", True)
MyFile.WriteLine("This is a test.")
MyFile.Close
End Sub
Èç¹û overwrite ²ÎÊýÊÇ false £¬»òÕßûÓÐÌṩÕâ¸ö²ÎÊý£¬ÄÇô¶ÔÓÚÒÑÓÐµÄ filename ½«²úÉúÒ»¸ö´íÎó¡£
´ò¿ªÖ¸¶¨µÄÎļþ²¢·µ»ØÒ»¸ö TextStream ¶ÔÏ󣬿ÉÒÔͨ¹ýÕâ¸ö¶ÔÏó¶ÔÎļþ½øÐжÁ¡¢Ð´»ò×·¼Ó¡£
object.OpenTextFile(filename[, iomode[, create[, format]]])
²ÎÊý
object
±ØÑ¡Ïî¡£object ӦΪ FileSystemObject µÄÃû³Æ¡£
filename
±ØÑ¡Ïî¡£Ö¸Ã÷Òª´ò¿ªÎļþµÄ×Ö·û´®±í´ïʽ¡£
iomode
¿ÉÑ¡Ïî¡£¿ÉÒÔÊÇÈý¸ö³£ÊýÖ®Ò»£ºForReading ¡¢ ForWriting »ò ForAppending ¡£
create
¿ÉÑ¡Ïî¡£Boolean Öµ£¬Ö¸Ã÷µ±Ö¸¶¨µÄ filename ²»´æÔÚʱÊÇ·ñ´´½¨ÐÂÎļþ¡£Èç¹û´´½¨ÐÂÎļþÔòֵΪ True £¬Èç¹û²»´´½¨ÔòΪ False ¡£Èç¹ûºöÂÔ£¬Ôò²»´´½¨ÐÂÎļþ¡£
format
¿ÉÑ¡ÏʹÓÃÈýֵ̬ÖеÄÒ»¸öÀ´Ö¸Ã÷´ò¿ªÎļþµÄ¸ñʽ¡£Èç¹ûºöÂÔ£¬ÄÇôÎļþ½«ÒÔ ASCII ¸ñʽ´ò¿ª¡£
ÉèÖÃ
iomode ²ÎÊý¿ÉÒÔÊÇÏÂÁÐÉèÖÃÖеÄÈÎÒ»ÖÖ£º
³£Êý Öµ ÃèÊö
ForReading 1 ÒÔÖ»¶Á·½Ê½´ò¿ªÎļþ¡£²»ÄÜдÕâ¸öÎļþ¡£
ForWriting 2
Ïà¹ØÎĵµ£º
arr = array(12,52,14,43,24,58,15,64,24,57,17,56,45)
arrLen = ubound(arr)
for i=0 to arrLen-1
for j = 0 to (arrlen -1)-i
if arr(j)>arr(j+1) then
temp = arr(j)
arr(j)= arr(j+1)
arr(j+1) = temp
end if
next
next
for each l in arr
response.Write l&"< ......
Asp²Ù×÷DTS½øÐдú²ÎÊýµÄÊý¾Ýµ¼Èëµ¼³ö
ÄêÇ°½ÓÁËÒ»¸öСÏîÄ¿,ÆäÖÐÒ»²¿·ÖÊǽ«sqlÖеÄÊý¾Ý½øÐÐÓÐÑ¡ÔñµÄµ¼³öµ½Ò»¸ömdbÖС£
ÕâЩÊÇÍêÈ«¿ÉÒÔͨ¹ýaspµÃsqlÓï¾ä½øÐвÙ×÷µÄ£¬µ«ÊÇ»¹ÊÇÏë°ÑÖ÷Òªµ¼³öµÄÈÎÎñ½»¸øsql serverÈ¥×ö£¬aspÖ÷ÒªÊǵ÷¶¯Õâ¸ö³ÌÐò¶øÒÑ¡£
Ïëµ½ÒÔÇ°×ö¹ýµÄ¶«Î÷£¬¾õµÃʵÏÖÆðÀ´²¢²»ÄÑ£¬Ö»ÊÇÒ»¸ö²ÎÊýµÄÎÊÌâ¡£
¿ªÊ¼ÊµÏÖ£ ......
½ñÌìÖØÐÂÕûÀíµçÄÔ£¬ÕÒµ½Ò»¸öÎļþ£¬¿´ÁËÏÂÈÕÆÚ£¨2006.11.5£© £¬Å²»Ð¡ÐÄÔÙ¶ªÁË£¬´æµ½ÍøÉÏÀ´É¹É¹¡£
°²×°ÓëÅäÖÃ
1.5.1°²×°IIS
¿ØÖÆÃæ°å_ Ìí¼Óɾ³ý³ÌÐò_Ìí¼Óɾ³ýWindows×é¼þ_
"internetÐÅÏ¢·þÎñ(IIS)"¶Ô»°¿ò_ÏêϸÐÅÏ¢——"Word Wide Web·þÎñÆ÷" _ µ¥»÷Á½¸ö“È·¶¨”—&mda ......
Õâ¸öÄ£°åÒýÇæ±È½Ï·½±ã,¸úHTML½áºÏÁË
Class template
Private c_Char, c_Path, c_FileName, c_Content, c_PageUrl, c_CurrentPage, c_PageStr, ReplacePageStr
Private TagName
' ***************************************
' ÉèÖñàÂë
' ***************************************
Public Property Let Char( ......
Ò»¡¢Asp»ù±¾ÖªÊ¶
1£®AspÊÇActive Server PagesµÄ¼ò³Æ£¬ÊǽâÊÍÐ͵Ľű¾ÓïÑÔ»·¾³£»
2£®AspµÄÔËÐÐÐèÒªWindows²Ù×÷ϵͳ£¬9xÏÂÐèÒª°²×°PWS£»¶øNT/2000/XPÔòÐèÒª°²×°Internet Information Server£¨¼ò³ÆIIS£©£»
3£®AspºÍJSPµÄ½Å±¾±êÇ©ÊÇ“<%%>”£¬PHPµÄÔò¿ÉÒÔÉ趨Ϊ¶àÖÖ£»
4£®AspµÄ×¢ÊÍ·ûºÅÊÇ“'”£ ......