How to store values persistenly of files in a directory?

后端 未结 3 709
小蘑菇
小蘑菇 2021-01-12 18:27

I\'m developing a Windows application in VS2005 using C#. In my project, I generate dlls and store them in a directory. The dlls will be named as TestAssembly1, TestAssembly

3条回答
  •  梦谈多话
    2021-01-12 18:53

    You would just use Directory.GetFiles, passing in a pattern for the files you want to return:

    http://msdn.microsoft.com/en-us/library/wz42302f.aspx

    string[] files = Directory.GetFiles(@"C:\My Directory\", "TestAssembly*.dll");
    

提交回复
热议问题