make something where the console retrieves a file (preferably txt) and read each line separately?

example:

fsocksthingy("data.txt");
cout << data.txt;

while data.txt is:

name1 http://downloadlink.com
name2 http://downlink2.com
name3 http://downlink3.com

and the result would be:

name1
name2
name3
Download which version > (input here)
You chose name2!
(opens http link to download)

I know this is somewhat confusing but I need to know!

It is certainly possible, but the specifics of how to do it depend on how the file is set up. You need to know exactly how the file is set up and exactly what you want to do with the information you extract.