Added DownloadFile function example

This commit is contained in:
Rabia Alhaffar 2020-06-14 13:43:16 +03:00 committed by GitHub
parent 9796db7065
commit 7655e74648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,19 @@
// Example written by Rabia Alhaffar in 14/June/2020
// To know how to use DownloadFile function
#include <raylib.h>
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;
}