🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15830

Re: File IO.

#15830
From: Alex Bakaev [TeamB]
Date: Wed, 21 Apr 1999 00:00
27 lines
1095 bytes
wouldn't it be better to write 

          while ( ( tmp = fin.read() ) != -1 )
          {
            // process tmp
            fout.write(tmp);
          }//end while

?

Alex

Chris Hill wrote:
[snip]
>       while (tmp != -1)
>       {
>         tmp = fin.read();
>         // process tmp
>         fout.write(tmp);
>       }//end while
[snip]

-- 
HotSend - portable documents technology
http://www.hotsend.com/
eFax - get your faxes via email - Free !
http://www.efax.com
Technical Details
Message-ID: <371E5E56.C85A1D4@jetsuite.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37116ED0.EE5262B1@hotmail.com> <37117152.2342028258@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,409689455649c9cf
X-Google-Attributes: gidf74b3,public
From: "Alex Bakaev [TeamB]" <alexb@jetsuite.com>
Subject: Re: File IO.
Date: 1999/04/21
Message-ID: <371E5E56.C85A1D4@jetsuite.com>
X-Deja-AN: 469331944
Content-Transfer-Encoding: 7bit
References: <37116ED0.EE5262B1@hotmail.com> <37117152.2342028258@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language