using chow to read specific line on file Cz I need to implem

using c#,how to read specific line on file? Cz I need to implement dijkstra\'s and it read the nodes edges from file.
in file, first line has number of nodes ,second line has the nodes itself ,third line has edge with weight

Solution

If you are using .NET 4.0 version it is very easy to read the specifc line. Please see the following example :

But if you are using the lower version of the .NET, you can load the lines into an array and directly access the line number with index.

using c#,how to read specific line on file? Cz I need to implement dijkstra\'s and it read the nodes edges from file. in file, first line has number of nodes ,s

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site