Uzman Üye
dakikasında cevap eyw güzelde üstte yazdığım gibi 3 tane veri var ben test1 = den sonraki yazıyı l1 e atamak istiyorumŞöyle yapacan
şimdi üst kısımdaki using bölümüne alt alta
using SystemIO;
using System.Text; satırlarını ekliyoruz
daha sonra ise, bir listbox, birde filedialog koy bir adette buton koy ve çift tıkla, daha sonra açılan kod bölümüne,
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
StreamReader cek = new StreamReader(openFileDialog1.FileName);
string veri = cek.ReadLine();
while (veri != null)
{
listBox1.Items.Add(veri);
veri = cek.ReadLine();
}
if (File.Exists(@"1.txt"))
{
//buraya lazım işte test1 ="vasd" bu kısmı
//l1.Replace("", "");
}
else
{
StreamWriter File = new StreamWriter("1.txt");
File.Write("test1 = vasd" + Environment.NewLine + "test2 = aasd" + Environment.NewLine + "test3 = casd");
File.Close();
}
StreamReader file = new StreamReader(@"1.txt");
while ((l1 = file.ReadLine()) != null)
{
if (l1.Contains("test1 ="))
l1.replace("","")
}
Peki. Deniyim Bakalım
Edit:
[test]
test1=asdasd
böyle çalışıyor baştan düzenlemek gerek
Internette arastirmis bulamamis o halde sende bulamazsin yalan soyleme.
Internette arastirmis bulamamis o halde sende bulamazsin yalan soyleme.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?