NEW YORK — Rite-Aid files for bankruptcy protection for the second time in two years.