I, an absolute beginner C need urgently a code to create the following program: it is to read only certain characters (eg 10-300) of a binary file and save it to a new file. Can anyone help me?
very simple you use a loop in which you fgetc reads with individual characters. You control whether the character is just what you want and write that in the other file.
Is it possible to read many thousands of characters? Please post once a sample source code, as I said, I am a complete beginner ...
You can read many so theoretically infinite Code: for(int c = 0; (c = fgetc (file)) = EOF;) ( if(c> = 10 & & c <= 300) fputc (c, outfile); )