c# retrieve files in folder
string[] filePaths = Directory.GetFiles(@"c:\MyDir\", "*.bmp");
// returns:
// "c:\MyDir\my-car.BMP"
using System.IO;
string[] filePaths = Directory.GetFiles(@"c:\MyDir\");
// returns:
// "c:\MyDir\my-car.BMP"
// "c:\MyDir\my-house.jpg"
string[] filePaths = Directory.GetFiles(@"c:\MyDir\", "*.bmp",
SearchOption.AllDirectories);
// returns:
// "c:\MyDir\my-car.BMP"
// "c:\MyDir\Friends\james.BMP"
Also in C#:
- how to add a list to observablecollection in c#
- get all child gameObject of gameObject C#
- unity html request
- MVC company assignments
- windows forms iterate through all controls
- change z value unity
- Celsius to Fahrenheit c#
- iphone
- how to reduce garbage collection c#
- Request.Form
- Unity3d GPS code
- c# param exception
- C# type cast float to string
- wait without pause anything else unity
- csharp datetime string format
- class selector to property in asp net core dropdown
- unity c# is not equal to
- c# wpf row definition height * in code
- freeze rotation in code c#
- datagridview column color c#
- c# skip following code in loop
- C# Cast double to float
- dynamically add rows to datagridview c#
- how to add movement in unity