Hello, i am trying to read multiple lines from csv file with caa file library and oscat. I have wrote 7 lines in the csv with separation '$R$L'. In my "extracting values" part I check line feeds and chars. After that I convert my buffer to string with oscat but I'm only able to read the first line from the csv. No matter if I even change start position where I start converting the buffer, I only get the first line.
Here's my code for the reading and extracting value parts:
Not sure, but maybe before you enter step 5, set i, lineindex and charIndex to 0.
And the buffer variable should have a size bigger than 1 line.
Additionally I think you should set bufferstart to 0 before you enter step 5.
And in the OSCAT function you always point to the buffer address, but shouldn't this be (buffer + bufferstart)?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, i am trying to read multiple lines from csv file with caa file library and oscat. I have wrote 7 lines in the csv with separation '$R$L'. In my "extracting values" part I check line feeds and chars. After that I convert my buffer to string with oscat but I'm only able to read the first line from the csv. No matter if I even change start position where I start converting the buffer, I only get the first line.
Here's my code for the reading and extracting value parts:
If anyone has idea how to read multiple lines, it would be nice. Even if you have example codes that work, that would help a lot.
Not sure, but maybe before you enter step 5, set i, lineindex and charIndex to 0.
And the buffer variable should have a size bigger than 1 line.
Additionally I think you should set bufferstart to 0 before you enter step 5.
And in the OSCAT function you always point to the buffer address, but shouldn't this be (buffer + bufferstart)?