- I do not understand, why you need counter variable
You do not try read the content. If you want read the file, use stream to read it:
using (StreamReader reader = flInfo.OpenText()) { Console.WriteLine(reader.ReadToEnd()); }
Not reading the content of files in wpf [closed]
-
13-12-2021 - |
Pregunta
var dir = new DirectoryInfo(Path);
foreach (FileInfo flInfo in dir.GetFiles())
{
String name = flInfo.Name;
long size = flInfo.Length;
DateTime creationTime = flInfo.CreationTime;
const int counter = 0;
int count = counter + 1;
}
I am getting the path but not not reading the content and file info
Solución
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow