ReadLines is lazy and can read the file once.

ReadAllLines is eager and reads to an array which you can traverse as much as you like.

[link:msdn.microsoft.com]

You are using ReadLines (lazy seq), and then try to traverse it twice (xPoints and yPoints).

Just use ReadAllLines.

By on 5/15/2010 2:27 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper