I work on a small program in which the user opens a textfile into a richtextbox.
I want the program to add some characters to each line of the text that the user has selected to open with the commondialog Open.
1. Now, how can my program tell the path of the file that the user has selected, because as far as i can see, i need the path of the file in order to be able to open it for appending i.e.?

2. How do i count all the lines in a text?

Kind regards

Mantooth