readinput:=proc(filename)
local line,file;
file:="";
line:=readline(filename);
while line<>0 do
file:=cat(file,line);
end do;
end proc;