Feel free to ask whatever it's not clear.
In this case:
1) How can I declare"For i=0 to infinite" or" i=0 to number of row in a file *.txt"?
You use a List.
To obtain the quantity of items contained in a List you need
The numeration of items go from 0 to X, so we need
to point to the last item starting from 0.
2°) How can the code (posted below) works for each row that I create in a customlistview (by "file.txt")?
In the Button_Click Sub you need to set a new button and assign the Sender to it.
This will not create a Copy of the Button but will create a Reference to the clicked one (Sender).
Now everything you will read or write on the Reference Button will correspond/happen to the Sender one.
This logic work in the same way for every view that you can click in the CustomListView.