Here is a file that uses the pst-barcode package to generate a barcode. Namely, there is a need for files with ISBN numbers to be located in a separate folder and individual files. The question is how to define the path to the file (for example, ISBN_2.txt) with the ISBN number in the \psbarcode command.
\usepackage{lipsum}
\usepackage{pst-barcode}
%path to ISBN files
\def\ISBNPath{./input/ISBN_List}
\def\FileNumber{2}
\pagestyle{empty}
\begin{document}
\lipsum[1]
\begin{pspicture}(0,0)(0,0)
\psbarcode{\input{\ISBNPath/ISBN_\FileNumber.txt}}{width=1.5 height=0.8}{isbn}
\end{pspicture}
\end{document}
If it is written as in the attached example, an error occurs when compiling the Latex file.
I'm sure someone knows the answer and the solution. Please help and for one example. Thanks in advance.
