basic functions for writing .net-files