I\'m trying to build an instruction pipeline simulator and I\'m having a lot of trouble getting started. What I need to do is read binary from stdin, and then store it in me
fread() suits best for reading binary data.
Yes, char array is OK, if you are planning to process them bytewise.