Antrium A35D

Bir sonraki için en iyisini yap...

c# Extension from string, c# dosya yolundan uzantı bulmak

string myFilePath = @"C:\MyFile.txt";
string ext = Path.GetExtension(myFilePath); // ext would be ".txt"

Yukarıdaki kodla dosya yolundan uzantıyı bulabilirsiniz.

267 Okunma | 23.01.2023 11:25

YORUMLAR

Yorum Yaz
Hüseyin ÖZKAN Yazılım Uzmanı

C#,MVC,MSSQL,Windows Forms