How to access files in a folder

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
How can I access files in a folder? Where canI find Information on this?

Thanks
 
* "=?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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top