module to read a file starting at the end
