Post: c# update code
09-18-2011, 10:16 AM #1
Default Avatar
Brad
Guest
(adsbygoogle = window.adsbygoogle || []).push({}); what is the code to update something in visual c#

how would i make it read a update.txt hosted on a server. read it and if it sees it is outdated it will ask them if they want to update.
Last edited by Brad ; 09-18-2011 at 05:50 PM.
09-18-2011, 03:42 PM #2
Woof
...hmm
Expand the question a bit please then I can help you.
09-18-2011, 05:50 PM #3
Default Avatar
Brad
Guest
Originally posted by BAdmaNgLiTcHa View Post
Expand the question a bit please then I can help you.


i expanded the question Awesome face
09-18-2011, 07:45 PM #4
Woof
...hmm
Originally posted by Dr.
i expanded the question Awesome face

The way I would do it is stream the file into a string.
So lets say...
    String text = stream.ReadToEnd();

Then when you want it to check just re-stream the file like...
    if (text != stream.ReadToEnd())
{
text = stream.ReadToEnd();
}

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo