Finally I have done the program for B-trees and B+ trees. There were some minor corrections to make in the earlier programs as well. So here is the link to download all the 12 programs fully updated.
Kindly delete the programs which you had downloaded earlier. Before studying any program, make sure that you are getting output for it. My first program is not satisfying the question. You have to use two input files for the second case: one is the input file from which you read the names and the other is the output file into which you write the reversed names. I didn't take an input file. Sorry for the inconvenience.