Author | Message |
---|---|
jas.wn
Posts: 8
|
Posted 21:09 Nov 27, 2019 |
While testing the functionality for my back-end, I tested my code with the CSV file under the homework 9 resources. I started to receive index out of bounds exceptions, so I decided to investigate. I wrote a program to print out individual values of the CSV file and I saw that my program stopped after the 2nd value of the 26th line in the CSV file. I tested it with my own CSV file and everything worked (I also made my CSV file as similar to the test one). Here's a screenshot of the csv file and the output of my program. Any ideas as to why this is happening and what I can do to fix it? Last edited by jas.wn at
21:12 Nov 27, 2019.
|
Drosete3
Posts: 2
|
Posted 01:28 Nov 28, 2019 |
I had exactly the same problem at that line. What I did was copy the information from the csv file into my own csv file and it worked perfectly. |
kknaur
Posts: 540
|
Posted 12:35 Nov 28, 2019 |
Not sure what is causing this problem. I will have to look at my generated CSV file and see what is going on. In the meantime you can do what Drosete3 suggested. There may be a strange character in the file I generated there that is removed by copying to a new file. Also what systems are you guys using? I see one looks like Linux. |
jas.wn
Posts: 8
|
Posted 13:21 Nov 28, 2019 |
Thanks, the fix worked for me. I am using Manjaro Linux here. Last edited by jas.wn at
13:22 Nov 28, 2019.
|
Drosete3
Posts: 2
|
Posted 16:34 Nov 28, 2019 |
This file should work. |