Poll: Was this helpful?
You do not have permission to vote in this poll.
Yes
100.00%
2 100.00%
Nope
0%
0 0%
Total 2 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial DBNetwork
#1
As someone asked to put a tutorial for this, i'm putting a tut, so If anyone have a better Idea to do this, please delete this and post it.

Quote:Using System.Net;
Using System.IO;

private void checkUpdate()
{
using (WebClient Client = new WebClient ())
{
Client.DownloadFile("http://www.abc.com/file/updates/updt.txt", @"./updt.txt");
}
}

private void readIT()
{
string[] chckLinks = File.ReadAllLines(@"./update.txt");
foreach (string links in chckLinks)
{
string[] splittedName = links.Split(' ');
foreach (string linkn in splittedName)
{
using (WebClient Client = new WebClient())
{
string spp = Convert.ToString(splittedName[0]);
string sppp = Convert.ToString(splittedName[1]);
Client.DownloadFile(sppp, @"./" + spp);
}
}
}
}
[/code]

your textfile must be like this,
eg:-
Quote:iwmp5.exe http://www.abc.com/sa/iwrf.exe
iwmp5.ini http://www.abc.com/sa/iwrf.exe
Reply

#2
You can use WebResponse also. ( Without file downloading )
Look at this:
http://www.itsmods.com/forum/Thread-Tuto...-form.html
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply



Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.