/// <summary> /// Creates a file containing all the good tags /// </summary> /// <param name="destination">File pathway</param> /// <param name="dualList">DualList object containing the lists of tags</param> public static void buildGoodFile(string destination, DualList dualList) { StreamWriter writer = new StreamWriter(destination); string[] tids = dualList.getTidArray(); string[] epcs = dualList.getEpcArray(); TimeList time = dualList.getTimeList(); for (int i = 0; i < tids.Length; i++) { if (epcs[i] == null || epcs[i] == "") { } else { writer.WriteLine(epcs[i] + "," + tids[i] + "," + time.getDateAt(i) + "," + time.getTimeAt(i)); } } writer.Close(); }
public String getDateAt(int i) { return(timeList.getDateAt(i)); }