public void ReadAndOverwrite() { const string tf = @"SPX20070926.TIK"; // read a barlist var bl = BarListImpl.FromTIK(tf); // get new bars var newbl = BarListImpl.DayFromGoogle("FTI"); // append for (int i = 0; i < newbl.Count; i++) { foreach (var k in BarImpl.ToTick(newbl[i])) { bl.newTick(k); } } // write the barlist Assert .IsTrue(BarListImpl.ChartSave(bl, Environment.CurrentDirectory, 20070926), "error saving new data"); }