# File pkg/t2-web-0.0.5/bin/t2_webapp.rb, line 37
    def chomp_last_newline(file)

      if File.file?(file) and File.size(file) > 1
        f = open(file, "rb+")
        f.seek(-1, File::SEEK_END)
        f.truncate(File.size(file) - 1) if f.read(1) == "\n"
        f.close
      end

    end