Hi,
im writing a program in c++ where their prompted to enter in a file name and i will display the info in the text file in a fashionable way the text file looks like
55 5 5 54
55448
54854
56985
how do i only grab certian lines. i cant figure it out for the life of me, is it cin.getline or ??? any help would be greatly appreciated
i would like to make output look like
line 2 says ....
line 4 says ....
line 3 says ....
line 1 says .....