summaryrefslogtreecommitdiff
path: root/src/stv.adb
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2017-02-05 00:43:59 +1100
committerJed Barber <jjbarber@y7mail.com>2017-02-05 00:43:59 +1100
commit5a8a3749f46828f1db5cbd6bd55d22ea9e188ab1 (patch)
tree165e0c87d3cfaa2cc4565f7d8ea84fe6445b5657 /src/stv.adb
parent464156f1baa38b6c6bd95b1d4d4e9f7c05e4294e (diff)
CSV package done, sketched out Candidates package
Diffstat (limited to 'src/stv.adb')
-rw-r--r--src/stv.adb32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/stv.adb b/src/stv.adb
new file mode 100644
index 0000000..3297da2
--- /dev/null
+++ b/src/stv.adb
@@ -0,0 +1,32 @@
+
+
+with Ada.Text_IO;
+with Ada.Strings.Unbounded;
+with CSV;
+
+
+procedure STV is
+
+
+ package My_CSV is new CSV;
+
+
+ Result : My_CSV.CSV_Record;
+
+
+begin
+
+
+ Result := My_CSV.Parse_Line ("123,4""56,78""9764,3,""4,5"",");
+
+
+ for Item of Result loop
+ Ada.Text_IO.Put_Line (Ada.Strings.Unbounded.To_String (Item));
+ end loop;
+
+
+ Ada.Text_IO.Put_Line (My_CSV.Unparse_Record (Result));
+
+end STV;
+
+