Use FileInfo.Length:
if( new FileInfo( "file" ).Length == 0 )
{
// empty
}
Check the Exists property to find out, if the file exists at all.
Use FileInfo.Length:
if( new FileInfo( "file" ).Length == 0 )
{
// empty
}
Check the Exists property to find out, if the file exists at all.