flush
flush(fid)
This function flushes any output buffered for the file identifier fid, which must be a return value from a previous call to open. flush returns 0 on success or -1 on failure (for example, if the associated file was not opened for writing).