示例#1
0
        static void Main(string[] args)
        {
            var parser = new ArduLogParser("example.bin");

            parser.Parse();
            // `parser.Results` contains the pure structured data

            var csv = parser.GenerateCSV();

            //System.IO.File.WriteAllText("Huge.csv", csv); // for writing CSV
            Console.Write(csv);

            Console.Read();
        }
示例#2
0
        // An async function just for reference
        // Not actually used
        static async Task MainAsync(string[] args)
        {
            var parser = new ArduLogParser("example.bin");

            parser.OnProgress += Parser_OnProgress;
            await parser.ParseAsync();

            // `parser.Results` contains the pure structured data

            var csv = parser.GenerateCSV();

            //System.IO.File.WriteAllText("Huge.csv", csv); // for writing CSV
            Console.Write(csv);

            Console.Read();
        }