Subj : Re: while(in) To : borland.public.cpp.borlandcpp From : Neil Duffee Date : Mon Mar 22 2004 02:46 pm "Wayne A. King" wrote: > > On Sun, 21 Mar 2004 23:05:26 -0500, Les Hurley wrote: > > while(in){in>>n; > > cout< > End of file is set when you try to read *past* the last data in the file. > [snip] > while(in >> n){cout<>n; cout<>n; is really two lower-level steps ie. read from in then set n=in(value). ----------> signature = 5 lines follows <-------------- Neil Duffee, Joe Systems Guy, U d'Ottawa, Ottawa, Ont, Canada telephone:1 613 562 5800 x4585 fax:1 613 562 5161 mailto:NDuffee at uottawa.ca http://aix1.uottawa.ca/ ~nduffee "How *do* you plan for something like that?" Guardian Bob, Reboot "For every action, there is an equal and opposite criticism." .