日期:2014-05-19  浏览次数:20669 次

BinaryWriter、BinaryReader 为何得不到相应的数据值??
我是按照教程来得有很多东西,都没法实现!    
 
  如:插入数据     name:11     age:22     phone:33     address:44    
  得到的却是:     11     11     11     11    
  还有:读写器     pw     为什么没有:WriteString     方法呢??    
 
 
                      struct     Record         //     通讯录的记录格式    
                      {    
                                              public     string     name;    
                                              public     UInt16     age;    
                                              public     string     phone;    
                                              public     string     address;    
                      };        
 
                      class     Phone    
                      {    
                                              FileStream     f_srm;    
                                              string     s_filename;    
                                              Record     m_record;         //     定义一个变量结构集!(可存放了多个变量值)    
 
                                              public     Phone(string     s_name)    
                                              {    
                                                                      s_filename     =     s_name;    
                                              }    
                                              //--