I’m trying to create a downloader/update tool for my C application.
My updater PDL:
- Download update.xml from webserver
- Check update version by using fscanf and storing floating point to a variable
- Check variable with an if statement if the version is greater than release version defined in application
- Download update if true
- Display up to date if false
Does C have any built in functions to do this?
Is this possible in C?
cURL (libcurl) would be the easy option:
Download file using libcurl in C/C++
Downloading all files in directory using libcurl
http://curl.haxx.se/
If your software is based on Microsoft Windows, then you can also use Wininet APIs:
http://msdn.microsoft.com/en-us/library/aa385473.aspx