Er... read the chapter on file I/O.
If you haven't got time for that, read the manual pages on open, write, read, and close. If Uint8 is a scalar type then write( fd, map, 200*200*sizeof Uint8 ) would be sufficient; otherwise you'll need to serialize the data in some way.