I would like to write some binary data into file "something.dat" using functions write() and read(). I get file descriptor as argument. The goal is to write binary data separated by ',': data,data1,data2,data3 and then read it again from binary file. I am not allowed to use fopen(), fwrite() and fread().
I have searched for binary examples, but mostly all others examples are with file pointers or functions that are not a option. Can i get a simple example how to do this? I can do the rest myself.