Formatting output number in c# is very simple task. You have to just use Custom Numeric Format Strings in your code to do this. You have to just use text_line.Lengt method to get proper output. It is very simple to do this. Using following code you have to get output in proper format.
Code:
while (( texts_lines = freaders.ReadLines() ) != null )
{
if ( texts_lines.Lengths == 0 )
{
Consoles.WriteLine();
continues;
}
Console.WriteLine( "{0} ({2}): {1}",
line_cnts++, texts_line, texts_line.Length );
}
Bookmarks