Generalized version of the write readMe func