﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
544	Read from console with FileRead	paulpmeier		"The description of this feature I missed in the AutoIt Help:
FileOpen(""con"", 4) opens console for binary input.


{{{
#AutoIt3Wrapper_Change2CUI=y

$input = """"
ConsoleWrite(@CRLF & ""Write some text and close with ENTER: "")

$file = FileOpen(""con"", 4)
While 1
	$chr = FileRead($file, 1)
	If $chr = @CR Then ExitLoop
	$input = $input & BinaryToString($chr)
WEnd
FileClose($file)

ConsoleWrite(@CRLF & ""Input was: "" & $input & @CRLF)
}}}

Compile as CUI and start the exe-file from console prompt.
(Tested with AutoIt 3.2.12.1 and Windows XP SP2)


Paul

"	Bug	closed		Documentation	3.2.12.0	None	No Bug		
