It seems I cannot use File.Encrypt when creating a text file. And if I am supposed to use something else, why is File.Encrypt there?
As usual, thanks for the help in advance.