Path: news.cs.au.dk!not-for-mail From: Flemming Gram Christensen Newsgroups: comp.lang.beta Subject: Re: IO-redirection? Date: 03 Jul 2000 10:49:50 +0200 Organization: University of Aarhus, Department of Computer Science (DAIMI) Lines: 37 Message-ID: References: <20000626132609.18947.qmail@noatun.mjolner.dk> <39578BE4.A88AD47F@skynet.be> NNTP-Posting-Host: odin.mjolner.dk X-Trace: xinwen.cs.au.dk 962614192 817116 255.255.255.255 (3 Jul 2000 08:49:52 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 3 Jul 2000 08:49:52 GMT X-Newsreader: Gnus v5.7/Emacs 20.4 Xref: news.cs.au.dk comp.lang.beta:12509 Atle writes: > Peter Andersen wrote: > > > > printON: > > (# > > strm: ^STREAM; > > enter strm[] (* stream to print on *) > > do 'This and that'->strm.putLine; > > ... and so on ... > > #) > > > > ... > > > > do screen[] -> printON > > Thanks! This was exactly what I was looking for - my n'th experience of > > -- But it CAN'T be that simple!! -- > > but again it was... Atle You should rewrite your tokenizer to use streams and not files. That way it can read from both files and the keyboard, or a text object etc. Regards -- Flemming Gram Christensen, M.Sc., Software Engineer, Mjølner Informatics ------------------------------------------------------------------------ Mjolner Informatics ApS Phone: +45 70 27 43 43 Science Park Aarhus Fax: +45 70 27 43 44 Gustav Wieds Vej 10 DK-8000 Aarhus C Denmark E-mail: gram@mjolner.dk ------------------------------------------------------------------------