I'm reading from the data file and it prints out with like so:
Code:
**************************************
* *
My code is printed below....I can't have the spaces and i thought that NULL was supposed to eliminate the blankline. What am I doing wrong? If I use printf after fgets i get garbage and sometimes errors that i cannot convert char to char.
Code:
if(fgets(line, MAXLINE, inputFILE)!=NULL)
puts(line);
if(fgets(line, MAXLINE, inputFILE)!=NULL)
puts(line);
if(fgets(line, MAXLINE, inputFILE)!=NULL)
puts(line);