How to create a new file if none exists yet

I’m suprised I couldn’t find the answer to this question anywhere, but how do you go about creating a new (text) file in Elixir if none exists yet?

I went through the whole documentation of File but it seems you can only create directories, not files. Am I missing something? or File.touch if you want to create file.

1 Like

Seems I didn’t look close enough, thanks!