Hi guys,
I have a CSV file that looks something like this
23;tst;;;12;TEST;2;......
So, my delimiter is ;
Using excel buffer is not an option so I need to read each line of this txt file char by char and write data to some tables because each line has cca 2500 characters so I cannot simply read whole line at once, as one string.
This is in NAV 2009 R2.
Does anyone have any suggestions how to accomplish this?
THanks!
0
Answers
2. You could load the file into bigText using streams, and parse it from there
3. you can read it character by characted using streams too
The dataport will do for you column parsing, while reading the file in code will require you to build some parser to extract columns.
If you decide not to use ther dataport, then loading the file all in one go into BigText will be much much quicker that reading it char by char, but parsing it might be a bit more tricky.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
I think I'd go with char by char reading.
How can I do it?
I guess, something like
file.READ(CharVar);
but I'm kinda stuck on what to do next...
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03