Merhaba, text dosyanın içeriği şöyle olsun ve exe ile aynı konumda ayarlar.txt isminde
http://xxx.com/dosya/
dosyalist.tmp
oyun.exe
http://xxx.com/
kodun şöyle olmalı
class Config
{
public string DosyaUrl { get; set; }
public string DosyaList { get; set; }
public string GameDosya { get; set; }
public string AnasayfaURL { get; set; }
public void AyarlariAl()
{
using (var fs = new FileStream("ayarlar.txt", FileMode.Open))
{
using (var sr = new StreamReader(fs, Encoding.Default))
{
DosyaUrl = sr.ReadLine();
DosyaList = sr.ReadLine();
GameDosya = sr.ReadLine();
AnasayfaURL = sr.ReadLine();
}
}
}
}
hocam hata verdi . çekmedi . özel mesaj olarak belirttim.