[Tex/LaTex] How to use an underscore in a filename


With the commands \openout and \write I output text into a file. I want this file to have a name of containing an underscore (eg. name_01.txt), but I'm unable to get the underscore in the filename. My attempt (with \_):

\immediate\write\tempfile{this is interesting}

Best Answer


Related Question