I am writing an emulator that uses read() to load the contents of a file into an array:


int load_roms(unsigned char userom[])
{
FILE *romfile; /* Create pointer to ROM file */...