short数组写进txt

                       short[] ssss=new short[gaoDeData.Length];

                        FileStream fs = new FileStream("E:\\123.txt", FileMode.Create);                      

         byte[] temp = new byte[ssss.Length * sizeof(short)]; ;
                        Buffer.BlockCopy(ssss, 0, temp, 0, temp.Length);
                        fs.Write(temp, 0, temp.Length);
                        fs.Flush();
                        fs.Close();

posted @ 2018-12-06 14:17  风影我爱罗  阅读(309)  评论(0编辑  收藏  举报