how to read all the files in a directory (VB.Net)


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: how to read all the files in a directory (VB.Net)

  1. #1
    Join Date
    Apr 2005
    Posts
    47

    how to read all the files in a directory (VB.Net)

    Hi
    I need to read unknown #'s of text files in one directory. I was wonder is there any solution for it in vb.net
    the number of files will change each time
    thank you for help

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Code:
    Dim dir As New DirectoryInfo(Application.ExecutablePath)
    For Each file As FileInfo In dir.GetFiles()
        ' Process each file here
    Next
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Jul 2009
    Posts
    1

    Question With a web site

    Is there a way to do the same thing with a web site? For Example I want a list of all the files in the directory http://forums.devx.com/whitepapers/june/.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center