[3.11] Fix c-api/file.rst indexes (GH-114608)
#114639
Merged
c-api/file.rst indexes (GH-114608)
#114639