This code was tested using .NET 7 and CSharp 12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* DuDirectory.cs | |
* Does stuff with directories. | |
* b250625 | |
* A Pretty Cool Program | |
* https://gist.github.com/APrettyCoolProgram/6f8cb8e700fdccc39bf5314aefec8703 | |
*/ | |
using System.IO; | |
namespace Du |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* DuJson.cs | |
* Does stuff with JSON data. | |
* b250621 | |
* A Pretty Cool Program | |
* https://gist.github.com/APrettyCoolProgram/389006b4328b2f01b5c6da61e74d680d | |
*/ | |
using System.Text.Json; | |
namespace Du |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DuInternet | |
{ | |
public static void DownloadFileFromURL(string downloadUrl, string filePath) | |
{ | |
var client = new WebClient(); | |
client.DownloadFile(downloadUrl, filePath); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- u240326 --> | |
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | |
## About this file | |
## ----------------------------------------------------------------------------- | |
## | |
## - This file is a generic .gitignore file for GitHub repositories. You can | |
## find the current version here: | |
## https://gist.github.com/APrettyCoolProgram/1b0639062c6c0994b5767567e22ac738 | |
## |