From 7655e74648436e31744f9475776ab0f6aa0ca8f9 Mon Sep 17 00:00:00 2001 From: Rabia Alhaffar Date: Sun, 14 Jun 2020 13:43:16 +0300 Subject: [PATCH] Added DownloadFile function example --- examples/core/core_download_file.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 examples/core/core_download_file.c diff --git a/examples/core/core_download_file.c b/examples/core/core_download_file.c new file mode 100644 index 000000000..4ad6450f0 --- /dev/null +++ b/examples/core/core_download_file.c @@ -0,0 +1,19 @@ +// Example written by Rabia Alhaffar in 14/June/2020 +// To know how to use DownloadFile function + +#include + +const char *file2download = "https://raw.githubusercontent.com/Rabios/raylib/master/src/core.c"; + +int main(void) { + InitWindow(0,0,"DOWNLOAD FILE!!!"); + DownloadFile(file2download,"made_with_example"); + while(!WindowShouldClose()) { + BeginDrawing(); + ClearBackground(WHITE); + DrawText("FILE DOWNLOADED SUCCESSFULLY!!!",10,10,32,BLACK); + EndDrawing(); + } + CloseWindow(); + return 0; +} \ No newline at end of file