You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Read records from file with variable length

Received Response
35
Views
1
Comments
edited Jan 19, 2024 4:19PM in Integration 1 comment

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!