I would like to populate a table, which I created in my LaTeX document, using iterating over cells of a text file.
In order to read the text file I use this code.
\newread\data \openin\data = data \loop\unless\ifeof\data \read\data to\cell % do stuff with \cell \repeat \closein\file
As you know,
\read reads until it encounters a line break. Nevertheless, I would not like this behavior and I am more interested in reading cell by cell. In particular, reading by a certain delimiter. For example,
;, or whatever else.
TL;DR: Is there a command similar to
\read to keep reading until it reaches to a certain delimiter?
Note: I already know there is a CSV package out there which just do what I am trying to do. However, in this case I would rather prefer reinventing the wheel!
Example of the text file:
1 2 3 4 A B C D