int silc_file_writefile_mode(const char *filename, const char *buffer, SilcUInt32 len, int mode);
Writes a buffer to the file. If the file is created the specified `mode' is set to the file.