I want to be able to create a program in Visual Basic 2008 that lists the files in a directory. I know how to do it in C# but would like to know how to do it in VB, because that is my preferred programming language.How to list files in a directory in VB.NET?
You do it the same way in vb as you would in C#:
for each filename as string in Directory.GetFiles(path)
' do stuff
next for
No comments:
Post a Comment