int silc_file_writefile(const char *filename, const char *buffer, SilcUInt32 len);
Writes a buffer to the file. If the file is created specific mode is set to the file.