Re: NullReferenceException



Joe Shaw wrote:
> I've attached a little test program for this.
Sorry, no attachment in your e-mail.

Oops.  Sorry.  Attached.

Joe
using System;
using System.Collections;
using System.IO;

using Beagle.Util;

class X {

	public static void Main (string[] args)
	{
		foreach (string arg in args) {
			DirectoryInfo dir = new DirectoryInfo (arg);

			foreach (FileInfo file in DirectoryWalker.GetFileInfos (dir))
				Console.WriteLine ("File is {0}", file);
		}
	}
}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]