I try to make a new file, according to this question and answer: How to create an empty file by elisp?
I copied the code
(write-region "" nil custom-file)
into a new emacs file and wanted to execute it by C-x C-e. But all i get is
Wrong type argument: stringp, nil
So what am i doing wrong here ? Im pretty new to emacs and have tried finding a solution by googling it but had no success.