You said in your other thread that you already have a plugin that does this and that you only need to move the rank names to a file. So, you have implied that you already have a plugin that works. In this case, you merely need to add reading a file into an array of strings and then replacing the hard coded rank names with the array indexed appropriately.
If this is not the case, you need to be much more clear when you post for help.