Recently, I am learning writing data into files. I noticed there is a function called Sync(), which is used to commit the changes made on the file from memory to the disk. I understand that Close() will automatically commit the changes to the disk. However, when I am running some tests, I noticed that without using Sync() and Close(), the data will commit to the disk as well by using WriteAt().
Does that mean the WriteAt() will automatically commit changes to the disk?