fileNameFromGeneration
Computes the full file name from base, extension and generation. If the generation is -1, the file name is null. If it's 0, the file name is
NOTE: .ext is not an empty string.
Parameters
base
main part of the file name
ext
extension of the filename
gen
generation