2020-05-04 每日一例第46天
1.后台代码
OpenFileDialog op = new OpenFileDialog();
if (op.ShowDialog()==DialogResult.OK)
{
MessageBox.Show("文字长度:"+File.Open(op.FileName,FileMode.Open).Length.ToString()+"字节","提示");
}
2.结果显示