And here is the log of saving the same file with the same changes by notepad++:
(note, no setendoffile there, the file size in WriteFile is correct, but when I am reading the file right after saving in in that way, I got the file size of 9777 as it was unmodified instead of the correct 9763):
133 CreateFile : notepad++ | \site\about.html | OpenOrCreate | ReadAttributes, Write | ReadWrite | None | [/228] 5916 -> SUCCESS
OpenDirectory : \
FindFiles : \ 100
Cleanup : \site
CloseFile : \site
OpenDirectory : \site
135 CreateFile : notepad++ | \site | Open | Read | ReadWrite, Delete | None | [/231] 5916 OpenDirectory : \site
-> SUCCESS
FindFiles : \site 156
FindFiles : \site 156
Cleanup : \site
Cleanup : \site
CloseFile : \site
CloseFile : \site
OpenDirectory : \
133 WriteFile : \site\about.html | 0 | 8192 -> SUCCESS
FindFiles : \ 100
133 WriteFile : \site\about.html | 8192 | 1571 -> SUCCESS
133 Cleanup : \site\about.html
136 CreateFile : Far | \site | Open | ReadAttributes | ReadWrite, Delete | None | [/233] 4464 OpenDirectory : \site
-> SUCCESS
133 CloseFile : \site\about.html
OpenDirectory : \site
GetFileInformation : \site -> SUCCESS
FindFiles : \site 156
Cleanup : \site
Cleanup : \site
CloseFile : \site