Hello, I would appreciate some help to import data from a text file to a datagridview.
If anyone could give me a hint to get started...
The textfiles have the column name in the "[ ]"
I would like to read the data after the [wp], [pos], [rad] blocks, the data inside [] is not needed in the datagridview.
My problem is that I don't know where to start, If I need to read line by line, and strip the text after reading?

Sample of textfile:

[route] "350 Mongstad - Aasgard C"

[wp] "H Graa"
[pos] 605100.00 0042600.00
[rad] 1852.00

[wp] "Holmen"
[pos] 605530.00 0041000.00
[rad] 1852.00

[wp] "Stad"
[pos] 625400.00 0041000.00
[rad] 1852.00

Thanks for any hints..

Edited by Quazy: spelling....

3 Years
Discussion Span
Last Post by Quazy
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.