kaihsin1703 發表於 2022-9-18 09:31

請問這兩種想寫 FileClose 有差別嗎?

請問這兩種想寫 FileClose 有差別嗎?
$FO = FileOpen(@ScriptDir & "\" & "R_AlignOffsetCalTemp.txt",2)
FileClose($FO)

$FO = FileOpen(@ScriptDir & "\" & "R_AlignOffsetCalTemp.txt"2)
FileClose(@ScriptDir & "\" & "R_AlignOffsetCalTemp.txt)


謝謝。

gary8349 發表於 2022-9-20 03:57

建議是這樣寫,
簡潔易讀好維護
還有你有幾行少了逗號...


Local $sFile = 'R_AlignOffsetCalTemp.txt' ;;檔案
Local $FO = FileOpen($sFile, 2)
FileClose($FO)

kaihsin1703 發表於 2022-9-25 08:41

感謝。感謝。
請教 Autoit Socket or Web server 熟悉嗎?

gary8349 發表於 2022-9-27 00:30

kaihsin1703 發表於 2022-9-25 08:41
感謝。感謝。
請教 Autoit Socket or Web server 熟悉嗎?

抱歉
那方面沒有研究
可以到au3英文官網查詢
或是acn中文論壇
我印象中都有相關文章可以參考~

kaihsin1703 發表於 2022-9-29 21:14

感謝。感恩。{:9_274:}
頁: [1]
查看完整版本: 請問這兩種想寫 FileClose 有差別嗎?