Note that there are some explanatory texts on larger screens.

plurals
  1. POPatching System in VB
    text
    copied!<p>I am trying to make a patching system or an updater if you will for my program. What I want it to do is download the patch list which is in a specific form in the text file.</p> <p>Like this:</p> <pre><code>1 http://127.0.0.1:8080/patches/test1.rar 2 http://127.0.0.1:8080/patches/test2.rar 3 http://127.0.0.1:8080/patches/test3.rar </code></pre> <p>It's a tab in between 1 and the link.</p> <p>And then I want it to check if the version number of the launcher or program at the moment matches the LAST patch in the PatchList.txt file. The last patch is version 3 and the launcher version at the moment is 0.</p> <p>So if it doesn't match then it should start downloading one by one the patches. From patch 1 to patch 3.</p> <p>I thought a loop statement would be best for it so I came up with this idea:</p> <p>Make it download the PatchList.txt and then read each line individually. After it reads a line it will split where tab is so there will be two variables Version and PatchURL.</p> <p>It will then check Version to see if it matches the launcher version and if it doesn't then it will download files from the PatchURL and apply it and then set the launcher version to the version of the current patch and then check again, if the version number and if it does match then there will be no updates so it will finish.</p> <p>I don't know exactly how to put it into code. I have been trying for ages to be able to Download the txt file and read it line by line but I haven't been able to. I have tried many different things from StreamReader to StringReader and a bunch of other stuff.</p> <p>I'd appreciate any help. This is very frustrating for me.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload