I am trying to take the data in a file that looks like this (this is the accual data and dataformat.
Now I have tried it a few ways but all end in a segmentation fault. I have tried using fgetc along with atoi, I have tried fgets and using atoi on each index (treating the resulting string as an array) but I am at my whits end. Any help would apprecated.Code:11111111111 11111111111 11111111111 10000001111 10101101111 00101101111 11101101100 11111101101 11111100001 11111111111 11111111111
I have my matrix define at maze and I am using nested for loops and i can loop through and fill with default data like all 0's or 1's, but not with data from the file (and I am checking to make sure the file opens)