Advertisement
Gillito

Untitled

Jun 10th, 2015
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace ConsoleApplication15
  9. {
  10.     class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             StreamReader sr = new StreamReader("D:\\New.txt");
  15.             var str = sr.ReadToEnd();
  16.             Console.WriteLine(str);
  17.             foreach (char a in str)
  18.             {
  19.                 if (char.IsDigit(a))
  20.                     Console.WriteLine(a + "\n");
  21.             }
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement