Ok, so I am trying to make this code read a name and grades from an .xlsx file. In this code all it does when I cout << fileName, it doesn't output anything. I don't think that my code is even reading the file. help?
Thanks Andy, but what I was doing was just testing to see if it would read the first line of info. It won't, I am wondering if I am saving the csv file wrong, or what. The problem is that when I try to read and display even the first string of information it wont show anything. That is the real problem that I am facing. Also when I save my file as a .csv, then reopen the file it has the same layout as the .xlsx, so I was wondering if I might be saving it wrong.
In my version of Excel, 2010 version, there are three versions for saving a ".csv" file I believe I use the first version that says "CSV (comma delimited) (*.csv)". If that makes any difference for you.
I see what you are trying and there should be no reason that your test should not work. What I can think of right now is for you to post a portion, 3 or 4 lines, of the "csv" file so I can see what you are working with. The "csv" file is just a plain text file, so it should not be a problem.
Post a sample of the "csv" file and I will see what I can come up with.