Hello!

I have a little problem with coding a version check for my auto-updater.

The problem is:
I got a current version stored in update.ini localy.
The server has a file version.txt with the current and past versions.

lets say
ex. my local version is
Code:
1.0.0
ex. the server versions are:
Code:
1.0.0 
1.1.0
2.0.0
I want the program to search the local version in the server file, check if there are newer versions, download the corresponding file, update the config.ini witht the newer version (it should be 1.1.0 now) and repeat until it reaches the highest version available.

I can do everything else, but i just cant figure out how to perform his check.

So if anyone could help me with this I would really appreciate it!

here is a picture to show you what i mean