System.IO.FileInfo の Lengthプロパティーを参照し、
指定ファイルのサイズをバイト単位で取得します。
System.IO.FileInfo fi = new System.IO.FileInfo( @"c:\hello.txt" ); MessageBox.Show( fi.Length.ToString() );
System.IO.FileInfo の Lengthプロパティーを参照し、
指定ファイルのサイズをバイト単位で取得します。
System.IO.FileInfo fi = new System.IO.FileInfo( @"c:\hello.txt" ); MessageBox.Show( fi.Length.ToString() );
コメントを残す