The write system call writes data from a buffer defined by the user in the programme into the file supplied by the calling process, in bytes as specified by the caller. The Write system call is used by most current operating systems when a programme has to write data to a file stored in a filesystem.