Hey I'm a beginner at C++ and I'm trying to figure out how to read and display the content of a text file in my console application using C++. The file contains 25 lines and 3 columns. The first column is "Rank" (numerical values from 1 to 25) the second column is "Name" (25 teams name) and the third column "value" has the amount of point each team is worth. If someone could show me the code for reading and displaying all this information I would greatly appreciate it
I have tried many different things I saw on google. Like using the getline with an ifstream or even displaying the entire file without reading each line, but it doesn't work. Apparently there's a problem because two of the columns are integer while the other is a string.when I try to build it, the output box says something like conversion impossible.