But in AutoHotkey, there's no direct way.
We have to write such functions by hand:
Code: Select all
FileWrite(text, path) {
if FileExist(path)
FileDelete(path)
FileAppend(text, path)
}
and should have FileWrite for syntactical consistency.
Alternatively, can we add an overwrite option to FileAppend?