//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
using System.IO;
#region
//收缩转换,long to int
//扩展转换,int to long
#endregion
namespace _20110607_强制类型转换 {
class Program {
static void Main(string[] args) {
FileStream fs = File.Create("importdata.txt");
byte[] buf2 = new byte[fs.Length];
if (fs.Length <= int.MaxValue) {
int k = fs.Read(buf2, 0, (int)fs.Length);
}
}
}
}
20110607_强制类型转换
最新推荐文章于 2024-03-06 09:24:12 发布