Reputation: 281
FileSystemWatcher provide us different kind of events from changed to deleted. I was wondering why I'm getting deleted event whenever I used visual studio 2005 to edit a file and changed event if I'm using notepad or notepad++ and other editor?
Upvotes: 0
Views: 88
Reputation: 941277
Standard operation for programs that want to avoid losing everything:
If something goes wrong, the renamed file is restored. Your other editor would corrupt the original if something goes wrong while writing.
Upvotes: 2