private static void writeDataInFile(Path path, int option){
       switch (option) {
            case 0:  writeTextFile(path);
                     break;
            case 1:  writeByteFile(path);
                     break;
            case 2:  writeObjectFile(path);
                     break;
            case 3:  writeRandomAccessFile(path);
                     break;
            case 4:  writeRandomAccessFile(path);
                     break;
       }
     }