Is it possible to get 'fscanf' to read past or ignore whitespace characters???
I need to get a file into an array, but I only get the first few characters up to whitespace. This is what I have so far.
char buffer ;
FILE *infile ;
FILE *outfile ;
infile = fopen( "input.txt", "r" ) ;
outfile= fopen( "output.txt","w" ) ;
fscanf( infile, "%s", buffer ) ;
fprintf( outfile, "%s", buffer ) ;
As you can see, I have not implemented the array aspect yet, because my 'output.txt' file only gives me characters up to the first whitespace, instead of the complete file.