Re: [q-lang-users] Just starting with Q
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2006-08-21 09:08:38
|
Burton Samograd wrote: > public cat F; > > cat F = () if feof F; > = writes (freads F) || cat F otherwise; That script works fine over here. I'd suggest replacing freads with fgets from clib, though, because freads chops off the newline at the end of a line, whereas fgets keeps it. > [.q/cat] def F = fopen "cat" "r" > [.q/cat] cat F > cat <<File>> There's definitely something strange going on there. Are you running Q 7.2? Unfortunately, there's a bug in that version which might cause the behaviour that you see. Could you please try your example with Q 7.1? Or with the latest release candidate, Q 7.3 RC1, which is available here: http://prdownloads.sourceforge.net/q-lang/q-7.3rc1.tar.gz?download HTH, Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |