Ejemplo n.º 1
0
        /// <summary>
        /// Creates a file containing the completed list of tags
        /// </summary>
        /// <param name="destination">File pathway for the list of tags
        /// </param>
        /// <param name="dualList">DualList object cointaining the list of tags
        /// </param>
        public static void buildAssociationFile(string destination, DualList dualList)
        {
            StreamWriter writer = new StreamWriter(destination);

            string[] tids = dualList.getTidArray();
            string[] epcs = dualList.getEpcArray();

            for (int i = 0; i < tids.Length; i++)
            {
                writer.WriteLine(epcs[i] + "," + tids[i]);
            }
            writer.Close();
        }
Ejemplo n.º 2
0
        /// <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();
        }