示例#1
0
        public string ToText(JMP_Parser header)
        {
            StringBuilder sb = new StringBuilder();

            using (var writer = new StringWriter(sb)) {
                foreach (var record in header.Records)
                {
                    writer.WriteLine($"- Record:");
                    for (int i = 0; i < record.Values.Length; i++)
                    {
                        writer.WriteLine($"  - {header.Fields[i].Name}: {record.Values[i]}");
                    }
                }
            }
            Console.WriteLine($"CSV {sb.ToString()}");
            return(sb.ToString());
        }
示例#2
0
 public void Load(Stream stream)
 {
     Header = new JMP_Parser(stream);
 }