i want to save a text to a file using the filecontents package. Here is the source code:
\begin{filecontents}[overwrite]{test.lst}
Hello World!
\end{filecontents}
A file "test.lst" is created, but it is empty. If I use the source code
\begin{filecontents*}[overwrite]{test.lst}
Hello World!
\end{filecontents*}
then the header
%% LaTeX2e file `test.lst'
%% generated by the `filecontents' environment
%% from source `javaprogrammierung' on 2021/04/08.
%%
is written into the file, but not the text "Hello World!".
Can someone help me, why no text is written? I am using MacTeX 2021.
Thanks in advance for any help!
Soener
