I want to download a .ini file for Fortnite and have it move from downloads to LocalAppData however I click the button and my program closes with a error 'An exception occurred during a WebClient request.'
I left an image of my code and can anyone help me out? I need to to either download to the FortniteGame\Saved\Config\WindowsClient or I would like to be able to move the file to there. Thank You to anyone that can help.
There are a few problems with your question
I have updated the code and it is working for me.
using (WebClient webclient = new WebClient())
webclient.DownloadFile("https://cdn.discordapp.com/attachments/897280259219656744/897643067551645757/GameUserSettings.ini", "GameUserSettings.ini");
string folder = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
string specificFolder = Path.Combine(folder, "FortniteGame\\Saved\\Config\\WindowsClient");
string file = @"GameUserSettings.ini";
if (!Directory.Exists(specificFolder))
Directory.CreateDirectory(specificFolder);
File.Copy(file, Path.Combine(specificFolder, Path.GetFileName(file)));