CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: List of files

  1. #1
    Join Date
    Nov 2000
    Location
    USA
    Posts
    179

    List of files

    Hi all!
    Please, help me.
    I have a path and I have an extension of file (e.g. *.xml). And I need get all files with this extension in this directory.
    How can I make it?
    Thanks in advance.

  2. #2
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    str is a folder string,

    string [] fileEntries = Directory.GetFiles(str,"*.xml");
    - Software Architect

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured