text: 
  const fs = require("fs");
  const child_process = require("child_process");
  
  let checksumPersist = require("C:\\work\\Git_work\\NodeGFS\\Chunkserver\\store\\checksumPersist.js");
  
  
  ////////////////////////////////////////////////////////////////////////////////
  
  function reload(){
    delete require.cache[require.resolve("C:\\work\\Git_work\\NodeGFS\\Chunkserver\\store\\checksumPersist.js")]
    checksumPersist = require("C:\\work\\Git_work\\NodeGFS\\Chunkserver\\store\\checksumPersist.js");
  }
  
  
  async function forkServer(forkFile, startParam){
    var child = child_process.fork(forkFile);
  
    return  new Promise( (resolve, reject) => {
      child.on("message", (result) => {
        if("onload" == result.state){
          child.send(startParam);
        }
        else if("started" == result.state){
          resolve(child);
        }
        else{
        }
      });
    });
  
  }
  
  
  ////////////////////////////////////////////////////////////////////////////////
  
  // load content from disk
  exports.load = function(){
  // START
    reload();
    // run
    var checksumData = {};
    var checksumFreeData = []
    var checksumPath = "C:\\work\\GFS2\\AppData\\chunkserver\\checksum1\\data";
    var result = checksumPersist.load(checksumData, checksumFreeData, checksumPath);
  
    return result;
  // END
  };
  
  
  // add new chunk to disk
  exports.addChunk = function(){
  // START
    reload();
    // run
    var chunkName = "ab83e19265655130b208def31e0c483ecb835a24a9a7508eaec0df0e62e65870";
    var checksumList = [-1234567890, 1234567890]
    var checksumPath = "C:\\work\\GFS2\\AppData\\chunkserver\\checksum1\\data";
    var freeIndex = 0;
    var result = checksumPersist.addChunk(chunkName, checksumList, checksumPath, freeIndex);
  
    return result;
  // END
  };
  
  
  // set checksum
  exports.setChecksum = function(){
  // START
    reload();
    // run
    var chunkName = "ab83e19265655130b208def31e0c483ecb835a24a9a7508eaec0df0e62e65870";
    var checksumList = [-1, 2]
    var checksumPath = "C:\\work\\GFS2\\AppData\\chunkserver\\checksum1\\data";
    var itemIndex = 0;
    var result = checksumPersist.setChecksum(chunkName, checksumList, checksumPath, itemIndex);
  
    return result;
  // END
  };
  
  
  // delete chunk
  exports.deleteChunk = function(){
  // START
    reload();
    // run
    var itemIndex = 0;
    var checksumPath = "C:\\work\\GFS2\\AppData\\chunkserver\\checksum1\\data";
    var result = checksumPersist.deleteChunk(itemIndex, checksumPath);
  
    return result;
  // END
  };
  
  
  // encode
  exports.encode = function(){
  // START
    reload();
    // run
    var chunkName = "ab83e19265655130b208def31e0c483ecb835a24a9a7508eaec0df0e62e65870";
    var checksumList = [0]
    var result = checksumPersist.encode(chunkName, checksumList);
  
    return result;
  // END
  };
  
  
  // decode
  exports.decode = function(){
  // START
    reload();
    // run
    var encodedContent = Buffer.from("ab83e19265655130b208def31e0c483ecb835a24a9a7508eaec0df0e62e65870,0001,000000000000------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------;");
    var result = checksumPersist.decode(encodedContent);
  
    return result;
  // END
  };
  