Im trying make an app that copy the favicon.ico to %temp% file, I have the below code:
string temp = System.IO.Path.GetTempPath();
System.IO.File.WriteAllBytes(temp + "favicon.ico", Properties.Resources.favicon);
But I am receiving the error:
Error 1 The best overloaded method match for 'System.IO.File.WriteAllBytes(string, byte[])' has some invalid arguments