Hi, now i want to print out the data from the text file. but, i face a problem in the output.the program give me the output is like this:
1 2:1
1 3:2
1 4:2
2 3:1
2 4:1
3 4:2
1 3:1
1 4:1
3 4:1
1 2:1
1 3:1
1 4:2
2 4:1
3 4:1
But, what i want is like this:
1 2:1
1 3:2
1 4:2
2 3:1
2 4:1
3 4:2
1 3:1
1 4:1
3 4:1
1 2:1
1 3:1
1 4:2
2 4:1
3 4:1
I don't want the space between the two lines. So, how to eliminate the space between the two lines
using (OpenFileDialog fileOpen = new OpenFileDialog())
{
String path = @"C:\Users\Fish\Desktop\fyp-coding\Combine1.txt";
if (File.Exists(path))
{
StreamReader f = null;
try
{
f = new StreamReader(path);
while ((read = f.ReadLine()) != null)
{
s1.AppendLine(read);
}
MessageBox.Show(s1.ToString().Trim());
Hope someone can help me..thanks ya..