And lo, the chronicles report that Dimitris Vyzovitis spake thusly unto the masses:
> 
> 
> Aaron Gaudio wrote:
> 
> > Isn't this a little over-complicated? Couldn't one just open up the file
> > like any other normal file in Java and then read from it? I admit I
> > haven't tried it myself.
> >
> 
> /proc contents are special files. They always appear to have size 0  but you
> can always cat them for the current snapshot.
> So, opening as a normal file will not do (try lessing them, you'll know what I
> mean) ;-}
> 
> Dimitris
> 

less and more both worked, but you are right, it is zero length. But
why should that prevent Java from reading it (in fact I see it that someon
else has tried it and succeeded). After all, stdin is zero length before
you put anything into it. As long as reading does not get and end-of-file
you should be fine.

-- 

¤--------------------------------------------------------------------¤
| Aaron Gaudio                   mailto:[EMAIL PROTECTED] |
|                    http://www.rit.edu/~adg1653/                    |
¤--------------------------------------------------------------------¤
|      "The fool finds ignorance all around him.                     |
|          The wise man finds ignorance within."                     |
¤--------------------------------------------------------------------¤

Use of any of my email addresses is subject to the terms found at
http://www.rit.edu/~adg1653/email.shtml. By using any of my addresses, you
agree to be bound by the terms therein.

Reply via email to