List<string> OutputList = new List<string>();
foreach (SensorMessage message in e.SensorMessages)
{
OutputList.Add(string.Format("{1} SensorID: {0} State: {4} Signal: {3}% Battery: {2}v", message.ID, message.Date, message.Voltage, message.SSP(), message.State));
foreach (Datum datum in message.Data)
OutputList.Add(string.Format("{0}: {1}", datum.Description, datum.Data));
}
該如何把 物件內的所有舉證 存檔成 .txt 呢?