How to read from a text file using a treeview and display in a listview?

Welcome to the DaniWeb.

>How to read from a text file

You may use classes from System.IO namespace. For example,

The method ReadAllLines() will opens a file and read all lines and then close file.

String []lines=System.IO.File.ReadAllLines("file.txt");
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.