How to detect End-of-File?

  • Thread starter newbie_at_sendmail
  • Start date
E

Esmond Pitt

Arne said:
The while loop is tha standard way of writing that code
in Java (actually in C# too).

It depends on what you mean by 'standard'. That's the way I write it
too, but I wouldn't let any 'standard', or even any common practice
which is all that you seem to mean by the word, get in the way of
limiting the scope of a variable if I considered that to be more
important in a particular situation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,772
Messages
2,569,591
Members
45,103
Latest member
VinaykumarnNevatia
Top