Read records from file with variable length
Summary:I need to read a csv file. This file contains different records. But each records has a different amount of fields.
How can I read the file.
So record 1 can contain 11 fields and record 2 can contain 50
I wanted to read first each record as one string and then make a scheme for that type of record. But I don't manage to read that csv file each records one by one.
#example file:
----------------------------------
"ENV";283428:64874;8237;456
"HDR";3456;23456;3;67;test;4567;5678;5678
"LIN";4567
"LTX";567;098;45;9;345678;56;8;9876;987;9876;3456;765
-----------------------------------------------------------------
the txt file I added is the xsd Schema I used but didn't work.
Tagged:
0