merhaba ben txt dosyadan gelen bilgileri textboxa satır satır aktarmak istiyorum ama \n işe yaramıyor. bilenler çözümü yazarsa sevinirim. şimdiden teşekkürler.
void txtKsClick(object sender, EventArgs e)
{
OpenFileDialog dosya = new OpenFileDialog();
dosya.Filter = "txt files (*.txt)|*.txt";
dosya.ShowDialog();
string txtM = dosya.FileName;
StreamReader SR = new StreamReader(txtM);
string full;
full = SR.ReadLine();
while(full != null)
{
to.Text = to.Text + "\n" + full;
full = SR.ReadLine();
}
SR.Close();
}
void txtKsClick(object sender, EventArgs e)
{
OpenFileDialog dosya = new OpenFileDialog();
dosya.Filter = "txt files (*.txt)|*.txt";
dosya.ShowDialog();
string txtM = dosya.FileName;
StreamReader SR = new StreamReader(txtM);
string full;
full = SR.ReadLine();
while(full != null)
{
to.Text = to.Text + "\n" + full;
full = SR.ReadLine();
}
SR.Close();
}
💬 SpyHackerz Telegram — Anlık tartışmalar ve duyurular için katıl