OK, I will try to add more details.
I'm using Latex (MiKTeX and subset pdflatex).
The problem is the inner \openin\datafile = data/\datatxt
The \indexfile contains a filename for each line.
But, how to open the \datafile ?
e.g.
data\index.txt:
a.txt
b.txt
goal is to open:
\openin\datafile ...
Search found 2 matches
- Sat Dec 15, 2012 3:46 pm
- Forum: General
- Topic: read list of files
- Replies: 3
- Views: 3411
- Sat Dec 15, 2012 2:07 pm
- Forum: General
- Topic: read list of files
- Replies: 3
- Views: 3411
read list of files
How to replace the macro \datatext before \openin is executed?
\loop{
\read\indexfile to \datatxt
{\bf\datatxt}\par
\advance\cntj by 1
\openin\datafile = data/\datatxt
In general, how to create dynamic filenames with strings, counters, ...?
data_1.txt
data_2.txt
Create a loop with counter ...
\loop{
\read\indexfile to \datatxt
{\bf\datatxt}\par
\advance\cntj by 1
\openin\datafile = data/\datatxt
In general, how to create dynamic filenames with strings, counters, ...?
data_1.txt
data_2.txt
Create a loop with counter ...