读取二进制文件判断是否文件尾
public class ReadFile
{
public List<String> ReadType()
{
BinaryReader br = new BinaryReader(new FileStream("TypeInfo.dat", FileMode.Open, FileAccess.Read));
List<String> node = new List<string>();
byte[] farr = new byte[1024];
const int rbuffer = 1024;
while (br.Read(farr, 0, rbuffer) != 0)
{
string str = br.ReadString();
node.Add(str);
}
br.Close();
return node;
}