Skip to content

Instantly share code, notes, and snippets.

@cosminpopescu14
Created November 10, 2019 09:52
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 cosminpopescu14/6a241b91fc16999cfa7135ea7a1a2264 to your computer and use it in GitHub Desktop.
Save cosminpopescu14/6a241b91fc16999cfa7135ea7a1a2264 to your computer and use it in GitHub Desktop.
string[] AllLines = File.ReadAllLines(path); // incarca mult memroia procesului.
//Console.WriteLine(AllLines);
Parallel.ForEach(AllLines, line =>
{
float x = float.Parse(line.Split("\t")[0]);
float y = float.Parse(line.Split("\t")[1]);
float res = x / y;
//Console.WriteLine(x / y);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment