﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3882	IsFileHandle(<AutoIt filehandle as returned by FileOpen)	RTFC	Jon	"I would like to write UDFs that (just like FileOpen) accept as input either valid filename OR (AutoIt) filehandle (actually an integer), but there is no way for me to check whether any integer parsed as a filehandle is referring to a currently valid file previously opened with FileOpen. For the moment I'm using this hack:

{{{#!autoit
Func _IsValidFileHandle($fh)
	FileGetPos($fh)		; non-invasive interaction
	Return (@error=0)	; an invalid (integer) AutoIt file handle triggers an error
EndFunc
}}}

But since various file functions already error out when an invalid AutoIt filehandle is parsed, it must be trivial to implement an IsFileHandle() function to perform this check internally."	Feature Request	assigned		AutoIt		None		filehandle	
