; 打開文件
$file = FileOpen("example.txt", 1)
; 寫入文本
FileWriteLine($file, "這是第一行要寫入的文本。")
FileWriteLine($file, "這是第二行要寫入的文本。")
FileWriteLine($file, "這是第三行要寫入的文本。")
; 關閉文件
FileClose($file)
這將在當前目錄下創(chuàng)建一個名為“example.txt”的文件,并將三行文本分別寫入該文件中,并且每行都會自動換行。 文章源自網(wǎng)吧系統(tǒng)維護-http://www.s143.cn/10575.html
版權(quán)聲明:文章圖片資源來源于網(wǎng)絡,如有侵權(quán),請留言刪除!!!


評論