Path: news.cs.au.dk!news.net.uni-c.dk!howland.erols.net!newspharm.inet.tele.dk.MISMATCH!newsfeedZ.netscum.dQ!netscum.int!newsfeeds.belnet.be!news.belnet.be!skynet.be!poster!not-for-mail From: Atle Newsgroups: comp.lang.beta Subject: Re: Program 'betcat.bet': Comments, please? Date: Wed, 21 Jun 2000 08:46:19 -0100 Organization: Belgacom Skynet SA/NV Lines: 13 Message-ID: <39508EEB.270E074E@skynet.be> References: <394D2663.37AB97D4@skynet.be> <394F9A74.3AB6FE7D@skynet.be> <8ioqkt$oh2$1@news101.telia.com> NNTP-Posting-Host: dialup341.charleroi.skynet.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news0.skynet.be 961569696 21903 194.78.239.21 (21 Jun 2000 06:41:36 GMT) X-Complaints-To: abuse@skynet.be NNTP-Posting-Date: 21 Jun 2000 06:41:36 GMT X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.5-15 i686) X-Accept-Language: en Xref: news.cs.au.dk comp.lang.beta:12470 Ralf Rohirrim wrote: > > > The readTheFile should be substituted with the following: > fil.scan(# do ch->put#); > fil.close; AH, it feels good to start knowing what I'm taling about: That would change the semantics from 'line at a time' to 'character at a time' right? Now, what if I wanted to read 'line by line' but separated by something other than \n? Like ';' for example? > The idea is to notice that showFile can go wrong, and declare a new > exception to be called when that happens. Thanks! I'm really starting to see the light now! Atle