Preview:
  using System.Linq;

  ...

  int[] y = File
    .ReadAllText(@"F:/C#/graph/graph/bin/Debug/y.txt")
    .Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)
    .Select(item => int.Parse(item))
    .ToArray();

  string[] x = File
    .ReadAllText(@"F:/C#/graph/graph/bin/Debug/x.txt")
    .Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries)
    .ToArray();
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter