temporar fix fopen_s/fopen in utils::writeFile (C4996 warning)