Update writeRawFile.c