I want to create a loop including n images.The number n is the only content of a help file (created by the application that generates the images).
Is it possible to read the contents of the help file and use that as a number variable to set the loop?
The following code works:
\def\cnt{\input{numberfile}}
\cnt
Output is the number (i.e. the content of the file).
The following code doesn't work:
\newcounter{cnt}
\setcounter{cnt}{\input{numberfile}}
\arabic{cnt}
The error indicates that the input isn't a number ("Missing number, treated as zero").
So how can I convert the input file to a LaTeX number?