I need to read PGM binary image files. Its format:
P5
nrows ncolumns
max-value
binary values start at this line. (totally nrows*ncolumns bytes/unsigned char)
I know how to do this in C or C ++ using the FILE handler by first reading a few lines and reading a binary block. But I do not know how to do this .Net.
source
share