Post navigation ← Previous Next → ファイル名から拡張子のみを取得する Posted on 2013年6月12日 by dorudoru Path.GetExtension()関数を使います。 // 結果:.txt(ピリオドを含みます) System.IO.Path.GetExtension(@"c:\hogehoge\temp\hoge.txt");
コメントを残す