[Mono-list] Simple code - differences in output between mono & .Net

Iain McCoy iain@mccoy.id.au
Thu, 04 Mar 2004 20:39:18 +1100


On Thu, 2004-03-04 at 03:13, Jonathan Stowe wrote:
>           StreamReader mtab = new StreamReader("/etc/mtab");
> 
>           ArrayList stuff = new ArrayList();
>           string[] fields;
>           while ( (line = mtab.ReadLine()) != null )
>           {
>              fields = line.Split(new char[]{' '});
>              if (fields[0] != "none")
>              {
>                 stuff.Add(fields[1]);
>              }
>           }
What happens to /proc and /proc/bus/usb with this system?
-- 
Iain McCoy <iain@mccoy.id.au>