Last active
November 13, 2016 07:56
-
-
Save Ram1L5/ae7afc3bcdf662265c4dff2a7301d94a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
StreamReader sr = new System.IO.StreamReader("G:\\subtraction.txt"); | |
char[] str = new char[400]; | |
sr.Read(str, 0, 400); | |
var number1 = new List<char>(); | |
var number2 = new List<char>(); | |
int position1 = (str.ToString()).IndexOf("\r\n"); | |
for(int i=0; i<position1; i++) | |
{ | |
number1.Add(str[i]); | |
} | |
for (int i = position1+1; i < str.Length; i++) | |
{ | |
number2.Add(str[i]); | |
} | |
foreach (var k in number1) | |
{ Console.Write(k); } | |
Console.WriteLine(); | |
foreach (var f in number2) | |
{ Console.Write(f); } | |
Console.ReadLine(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42353253262393205238593580932523898050928432435253252352352353252352 | |
3258239052395832905092359823958239859082343225325 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment