full_path = mono_path_resolve_symlinks (filename);
result = mono_w32file_write (handle, full_path, strlen (full_path), &n);
g_free (full_path);
full_path = mono_path_resolve_symlinks (filename);
result = mono_w32file_write (handle, full_path, strlen (full_path), &n);
g_free (full_path);