Hi i am trying to get the values from a comma separated .dat file into an array in C.
The values in the .dat file only consists of 1 and -1.
I have been trying for hours now, so i decided to ask for help.
Here is an example from the .dat file
1,1,1,-1,1,-1,1,-1,-1,-1,1,-1,-1,-1,-1,-1,1,-1,1,-1,1,-1,-1,-1,-1,1,-1,-1,1,1,-1,1,1,-1,1,1,1,1,-1,1,-1,1,-1,1,1,1,1,-1,1,1,1,1,-1,1,1,-1,1,1,1,1,-1,-1