![](https://secure.gravatar.com/avatar/5faea8b4fa0adb143383811dc94f0d22.jpg?s=120&d=mm&r=g)
1 Dec
2020
1 Dec
'20
6:45 a.m.
Hi everyone, I have to typeset a few files which get each an input file named in a certain way. For instance, a file named « myfile.tex » in which another file named « myfile-buffer.tex » is used as an \input file, as in % content of myfile.tex %%%%% \starttext This is a test. \input myfile-buffer.tex \stoptext %%%%% When typesetting « myfile.tex » I wonder whether it is possible to get the name of the file without its suffix, that is to get « myfile », with a command such as \getNameOfCurrentFile and then be able to replace the above snippet by: % desired content of myfile.tex %%%%% \starttext This is a test. \input \getNameOfCurrentFile-buffer.tex \stoptext %%%%% Best regards and thanks for any hint: Otared K.