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