how to write a struct to a file directly?
Using write and read system call. Following is an example:blk.h:#include <stdlib.h>#include <stdio.h>#include <fcntl.h>#include <sys/types.h>#include <sys...