Question: readline cannot work in worksheet file

Hi,all I am trying to use readline in a worksheet file, but I find it cannot work. /************code*****************/ Handle :=proc(f) local line, L; L:=[]; line:=readline("s.txt"); while line <> 0 do L:=[op(L),line]; line:=readline("s.txt"); end do; L; end proc; /*************************************/ When I executed the procedure, it gave me an error message: Error, (in readline) file or directory does not exist. But "s.txt" does exist in the same folder. any idea? thanks
Please Wait...