How to access files in a folder

  • Thread starter Thread starter Guest
  • Start date Start date
* "=?Utf-8?B?Q2hyaXM=?= said:
How can I access files in a folder? Where canI find Information on this?

Have a look at the classes in the 'System.IO' namespace: 'Directory',
'File', 'DirectoryInfo', 'FileInfo', 'StreamReader', 'StreamWriter',
'FileStream', ...
 
Hi,

Dim di As New System.io.DirectoryInfo("C:\")

Dim fi As System.IO.FileInfo

For Each fi In di.GetFiles

Trace.WriteLine(fi.Name)

Next



Ken
 
Back
Top