fileIsBinary()

作者: Lexikos 最近更新时间: 20091226


This function checks if file is a text format or in binary format. The check is done by content of file and not from extension. This could be useful at unknwon extensions.

fileIsBinary(_filePath)

关于函数的参数和返回值, 请参阅其源码.

备注

The initial given function by Tuncay is superceded by the simple one from Lexikos. But I decided not to give any License, the function is too simple for that.

关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?p=320069#320069

许可

不存在

示例

; #Include fileIsBinary.ahk
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

MsgBox % "A_ScriptFullPath: " . fileIsBinary(A_ScriptFullPath) . "`nA_AhkPath: " . fileIsBinary(A_AhkPath)