N
Niv (KP)
I have a file (which I create with a tcl script) which is a fullof
byte data in hex format.
The file is one byte 92 hex chars) per line, but easily changed to
something else.
I want to read this file with a C app, and fill a 2D array (probably
3x3 or 5x5) with data from the file, but so far when i read the byte
data I also get the CR/LF chars.
Also, if the file has non hex chars in any line, I want to discard
that line (e.g address modifier line).
Help please, (C newbie-ish).
byte data in hex format.
The file is one byte 92 hex chars) per line, but easily changed to
something else.
I want to read this file with a C app, and fill a 2D array (probably
3x3 or 5x5) with data from the file, but so far when i read the byte
data I also get the CR/LF chars.
Also, if the file has non hex chars in any line, I want to discard
that line (e.g address modifier line).
Help please, (C newbie-ish).