PURPOSE: This randomized clinical trial is studying a high-fiber diet to see how well it works compared with a low-fiber diet in preventing bowel side effects in patients undergoing radiation therapy for gynecological cancer, bladder cancer, colorectal cancer, or anal cancer.