The creat function creates files, but can not open existing file. If using creat on an existing file, the file will be truncated and can only be written to.
open is a system call that is used to open a new file and obtain its file descriptor.This system call can also be used for creating a file before opening it.