Create c++ code example

This code helps creating new file, file lookup, setting attributes, reading and writing files on the server with assistance of lock server to maintain coherence.