using (FileStream fs = OpenIni(FileMode.Open))
{
byte[] bs = new byte[fs.Length];
fs.Read(bs, 0, bs.Length);
string str = Encoding.UTF8.GetString(bs);
string[] RowsKeyValue = str.Split(new string[] { "\r\n" }, StringSplitOptions.None);
string RowKeyValue = RowsKeyValue[1];
string[] UserName = RowKeyValue.Split('=');
RowKeyValue = RowsKeyValue[2];
string[] UserPwd = RowKeyValue.Split('=');
RowKeyValue = RowsKeyValue[3];
string[] SevenToken = RowKeyValue.Split('=');
user = new User();
user.UserName = UserName[1];
user.Password = UserPwd[1];
user.SevenToken = SevenToken[1];
}
fs.Read(bs, 0, bs.Length);这句话中第一个参数是读取数组bs,第二个0是啥意思?第三个是读取bs数组的长度。不是很理解第二个参数的意思,和读取bs的长度有什么意义。