Hi, I would definitely use some help on this:
I've got a list of words in a .txt file. 1 word for 1 line. First I count the \n's to get the number of words and then I put the words to the array I defined by doing(size is number of words):
now as you see, the size of the second dimension of the array is 22 which is a limit for me and that is my problem. I have words longer than 22 char.'s, so I need to define the size as 30 or so. And if I put a number bigger then 22(23 for example) , I get an error message from the system (not the compiler) saying my program needs to be shut, when I try to run it.Code:char chDizi[size][22]; do{ fscanf(ptDosya01,"%s",&chDizi[j]); j++; }while(j<size);
So, I'll be very thankful if you help me find why this happens and what should i do. Thanks very much.