I am trying to read a file into a string, but it keeps only reading one line of the file. Here is my read code:
MAX_LINE is 10240, and I am not sure if that is good, bad or indifferent. If there is a better way to read in from a file, please let me know. Thanks for the helpCode:for(status = fgets(filebuff, MAX_LINE, inp); status != 0; status = fgets(filebuff, MAX_LINE, inp)){ }