Stupid question, but I am panicking.
How would I go about reading characters from a text file (including spaces) and storing them in a 2D array.
I know I need to use something involving (say I have a 2D array file[50][50])
while ((ch = fgetc(fp)) != EOF);
file[50][50] = characterWithinFile
Any help would be greatly appreciated, as I (surprisingly) know what I need to do after this point. Thanks
here is some code that can help you
and please choose a higher number than 50 if your text is more than 2500 characters !