當前位置:文範網 >

實用文 >素材及寫作指導 >

如何做一個文本書寫器?

如何做一個文本書寫器?

如何做一個文本書寫器?

如何做一個文本書寫器?

我們有下面的的函數,可做“文本書寫器”:

<%

function WriteToFile(FileName, Contents, Append)

on error resume next

if Append = true then

iMode = 8

else

iMode = 2

end if

set oFs = teobject("SystemObject")

set oTextFile = TextFile(FileName, iMode, True)

e Contents

e

set oTextFile = nothing

set oFS = nothing

end function

%>

<HTML>

<BODY>

<%

WriteToFile "C:", "中國水利水電出版社()——全國優秀出版社", True

WriteToFile "C:", "中國水利水電出版社()——全國優秀出版社", false

WriteToFile "C:", chr(13) & chr(10) & "隨風起舞()——時尚諮詢的個人網站", true

WriteToFile "C:", chr(13) & chr(10) & "隨風起舞()——時尚諮詢的個人網站", false

' contains:

'中國水利水電出版社()——全國優秀出版社 '隨風起舞()——時尚諮詢的個人網站

' contains:

'隨風起舞()——時尚諮詢的個人網站

%>

Write to File test is complete

</BODY>

</HTML>

標籤: 書寫器 文本
  • 文章版權屬於文章作者所有,轉載請註明 https://wenfanwang.com/shiyongwen/sucai/7zgq1.html
專題