I want to create a file with VB.NET and I want to use this file for a Icinga or Nagios configuration.
How to create a file in correct Unix format with encoding?
Already explained: here. Just detect what encoding you want receive finally.