nibsy Posted December 16, 2002 Posted December 16, 2002 How would you read the first file in a directory? (dont know the name of the file but know what directory it will be in). Quote
*Gurus* divil Posted December 16, 2002 *Gurus* Posted December 16, 2002 The Directory.GetFiles method returns a string array of all files in a directory. Presumably, the first element in this array will be the "first" file in the directory. When you have the path to the file, you can use File.Open to open it. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
nibsy Posted December 16, 2002 Author Posted December 16, 2002 Thanks Divil, just what I was looking for. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.