[問題] 有關 List 的使用

作者: mthunter (阿凱)   2017-11-15 20:38:06
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 呢?
作者: mthunter (阿凱)   2017-11-15 21:37:00
解決了

Links booklink

Contact Us: admin [ a t ] ucptt.com