欧美一级色视频,簧片在线免费看,美日韩在线,成人观看网站a,亚洲欧美在线一区二区,欧美操穴,欧美综合专区

龍巖易富通網(wǎng)絡(luò)科技有限公司

龍巖小程序開(kāi)發(fā),龍巖分銷系統(tǒng)

ASP OpenTextFile 方法

2015.09.10 | 74閱讀 | 0條評(píng)論 | 未命名

? FileSystemObject.OpenTextFile(fname,mode,create,format)

arameter參數(shù) Description描述
fname Required. The name of the file to open
必要參數(shù)。指定需要打開(kāi)文件的名稱
mode Optional. How to open the file?
可選組件。規(guī)定打開(kāi)文件的方式

1=ForReading - Open a file for reading. You cannot write to this file.
1=ForReading(以閱讀內(nèi)容為目的) – 打開(kāi)文件進(jìn)行內(nèi)容閱讀,但是你不可以在這個(gè)文件上書寫內(nèi)容。
2=ForWriting - Open a file for writing.
2=ForWriting(以書寫內(nèi)容為目的)- 打開(kāi)文件進(jìn)行內(nèi)容書寫。
8=ForAppending - Open a file and write to the end of the file.
8=ForAppending(以追加內(nèi)容為目的)- 打開(kāi)一個(gè)文件直接在這個(gè)文件內(nèi)容最后追加內(nèi)容

create Optional. Sets whether a new file can be created if the filename does not exist. True indicates that a new file can be created, and False indicates that a new file will not be created. False is default
可選組件。設(shè)置是否可以建立一個(gè)原本不存在的新文件。如果為true真,則可以建立一個(gè)新的文件,如果為false假,則不可以建立一個(gè)新的文件。默認(rèn)情況是false假。
format Optional. The format of the file?
可選組件。規(guī)定文件的格式

0=TristateFalse - Open the file as ASCII. This is default.
0= TristateFalse – 以ASCII形式打開(kāi)文件。這是原來(lái)的默認(rèn)屬性
-1=TristateTrue - Open the file as Unicode.
-1=TristateTrue – 以Unicode形式打開(kāi)文件
-2=TristateUseDefault - Open the file using the system default.
-2=TristateUseDefault – 使用系統(tǒng)默認(rèn)的格式打開(kāi)文件

舉例:
<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.OpenTextFile(Server.MapPath("testread.txt"),8,true)
f.WriteLine("This text will be added to the end of file")
f.Close
set f=Nothing
set fs=Nothing
%>

贊 (

發(fā)表評(píng)論

建瓯市| 合川市| 土默特右旗| 金阳县| 崇左市| 汉源县| 灵宝市| 信丰县| 揭东县| 万荣县| 永川市| 密云县| 盐池县| 海丰县| 泸定县| 永胜县| 浏阳市| 碌曲县| 乐都县| 昌宁县| 静安区| 克东县| 满洲里市| 肥东县| 新乡市| 宜章县| 旌德县| 曲阳县| 什邡市| 天津市| 句容市| 高台县| 大埔县| 疏附县| 丹东市| 汉川市| 深州市| 麦盖提县| 全州县| 天等县| 新安县|