private void button1_Click(object sender, EventArgs e) //dosya seçiniz click
{
//OpenFileDialog file = new OpenFileDialog();
//file.Filter = "Txt Dosyası |*.txt";
//file.ShowDialog();
string[] veri = new string[1000];
StreamReader SR = new StreamReader(@"C:\Users\Murat\Pictures\New folder\DE.TXT");
string satir;
while (SR.ReadLine() != null)
{
satir = SR.ReadLine();
veri[0] = satir;
richTextBox1.AppendText(satir + "\n");
richTextBox2.AppendText("{" + '"' + satir + '"' + ", new DataElement { Tag ='" + '"' + veri[0] + '"' + ", Type = FieldTypes.");
satir = SR.ReadLine();
richTextBox2.AppendText(satir + ", ");
satir = SR.ReadLine();
if (satir.Length > 3)
{
richTextBox2.AppendText("MinLength = 0,");
}
hello, this my code partition, I am reading the data from line by line txt file. But how do I make array this words?
There is a Txt File. There are line-words in it. I will assign the words in this line to the array, and I will process them. But I could not create an array. And that's why I've been using the new line for many times.