Now i am doing the split after Readline method. But, my coding always got problem. Hope someone can help me...
Here is my coding
file = new StreamReader(fileOpen.FileName);
StringBuilder sb = new StringBuilder();
while ((line = file.ReadLine()) != null)
{
//MessageBox.Show(line,"TEST");
//textBox7.Text = line;
sb.AppendLine(line);
}
textBox7.Text = sb.ToString();
string temp1 = "";
foreach (string lines in File.ReadAllLines(fileOpen.FileName))
{
parts = lines.Split(new string[] { " ", "\n", "\r", "\t" }, StringSplitOptions.RemoveEmptyEntries);
foreach (string part in parts)
{
temp1 = temp1 + "\n" + part;
}
MessageBox.Show(temp1, "read by line");
}
who can help me..?