Hi,
I'm reading a ppm image file into my program. Its a binary file with some comments and image information in ASCII at the beginning. I read the first few lines using fscanf() and everything works fine. However, when I read the image data (which is in binary) it reads the first 30 or so characters and then stops reading further. I've used fscanf(fptr, "%c", &c), ifstream.read(), fgetc(), getc() and fread() and all these stop reading input after the first few lines.
Any ideas what's going wrong?
they must have found a eof character in the file and must have stopped reading.. in binary files you cant differentiate if its really a eof character or a 0.. so you need to find a way to bypass it.