Skip to content

Instantly share code, notes, and snippets.

@Ram1L5
Last active November 13, 2016 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ram1L5/ae7afc3bcdf662265c4dff2a7301d94a to your computer and use it in GitHub Desktop.
Save Ram1L5/ae7afc3bcdf662265c4dff2a7301d94a to your computer and use it in GitHub Desktop.
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();
}
42353253262393205238593580932523898050928432435253252352352353252352
3258239052395832905092359823958239859082343225325
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment