才20分。
说多了,对楼主不好。现场编写代码。
例如:
class stud
{
public static byte[] name = new byte[30];
public static byte[] sex = new byte[2];
}
byte[] bdata = Encoding.Default.GetBytes("xingming");
stud s = new stud();
Array.Copy(s.name, bdata, 0, bdata.Length);
FileStream FS = new FileStream(...);
FS.Write(s.name, 0, s.name.Length);
...
FS.Flush();
FS.Close();