I have a path which has a list of files.
foreach (var file in Directory.GetFiles(networkpath))
{
Stream s=file.
}
I want to convert the file into Stream.How to proceed further?
Is this what you need?
foreach (var file in Directory.GetFiles(networkpath))
{
using (FileStream fs = File.Open(file, FileMode.Open))
{
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With