Code example for FileChannel

Methods: lock, write