Add ScopeGuard class

ScopeGuard is a very usefull class, for more to see it's unit test
Add file util

include some commonly used system calls for file operate