$file = FileOpen("test.txt", 1) If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") Exit EndIf For $i = 1 To 10 FileWrite($file," ") Next FileWrite($file, "Line1" & @TAB) FileWrite($file, "Still Line1" & @CRLF) FileWrite($file, "Line2") FileClose($file)
举报
$file = FileOpen("test.txt", 33) If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") Exit EndIf For $i = 1 To 10 FileWrite($file," ") Next FileWrite($file, StringToBinary("Line1" & @TAB,2)) FileWrite($file, StringToBinary("Still Line1" & @CRLF,2)) FileWrite($file, StringToBinary("Line2",2)) FileClose($file) ShellExecute("test.txt")
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2026-6-5 10:37 , Processed in 0.065828 second(s), 20 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2026 Discuz! Team.