[clean-list] newbie: simple console IO and 65536

isaac gouy igouy@yahoo.com
Mon, 10 Mar 2003 20:38:47 -0800 (PST)


Puzzled by the behaviour of this simple console IO
program (on Windows XP). After echoing back an
inputline, 65536 appears on the console? How do I
avoid this behaviour?

---------------
module echoline
import StdEnv

Start:: *World -> *World
Start world 
	# (console, world) = stdio world
	  (ln, console) = freadline console
	  console = fwrites ln console
	  (ok, world) = fclose console world
	|  not ok = abort "problem!"
	= world
---------------
I:\Clean>echoline -con
input line
input line
65536
---------------





__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com