Without the SaveDat.SaveDatArr method code, we can't tell you what you are doing wrong - because we can't see what you are doing at all!
But...At a guess you are either using File.AppendText or opening a stream for append instead of overwrite:
... = new StreamWriter(@"D:\Temp\Data_Entry.dat", true);
Either change the
true
to
false
, or use the single parameter version:
... = new StreamWriter(@"D:\Temp\Data_Entry.dat");