On every fast day that is decreed upon the community due to troubles—the beit din and the elders sit in the beit knesset and investigate the actions of the people of the city from after the shacharit prayer until midday; and they remove the obstacles of transgressions, and warn, and preach, and inquire regarding those who commit violence and transgressions and separate them, and regarding the powerful and humble them, and similar matters. And from midday until the evening, for a quarter of the day—they read from the Torah and read the haftarah from the Prophets. And the final quarter of the day—they pray mincha, and sound the shofar, and confess, and cry out according to their strength. And as for why we do not do so—it is because we do not have the power to protest against transgressors, as is known (see Magen Avraham, subsection 12). And what do they read? The Rambam wrote at the end of the first chapter that they read "Im Bechukotai," the blessings and the curses, and they read the haftarah from the Prophets with rebukes related to the trouble. And from his words it is implied that in the morning they did not read at all. And so Rashi explained in Megillah (30b) that there is no time in shacharit to read from the Torah because they were occupied with searching for transgressions, see there. But the Tur later in siman 579 wrote that in shacharit they read the blessings and curses of "Bechukotai" and read the haftarah regarding matters of drought, and in mincha they read "Vayechal" and read the haftarah "Dirshu," as on all fasts. And he cited that the Geonim wrote thus. And the reason is that in the time of the Gemara the investigation of transgressions was done properly, and it was appropriate to postpone the Torah reading, which is not the case in the time of the Geonim, and certainly not now (see Lechem Mishneh ibid.). And we, on all fasts, read "Vayechal" in shacharit and mincha, and in mincha we read the haftarah "Dirshu," because we do not have the order of fasts in the diaspora, as has been explained already.
בכל יום תענית שגוזרין על הציבור מפני הצרות – בית דין והזקנים יושבין בבית הכנסת, ובודקים על מעשי אנשי העיר מאחר תפילת שחרית עד חצי היום; ומסירין המכשולים של עבירות, ומזהירין ודורשין וחוקרין על בעלי חמס ועבירות ומפרישין אותם, ועל בעלי זרוע ומשפילין אותן, וכיוצא בדברים אלו. ומחצי היום עד לערב רביע היום – קורין בתורה, ומפטירין בנביא. ורביע היום האחרון – מתפללין מנחה, ומתריעין ומתוודים וזועקים כפי כוחן. ומה שאין אנו עושים כן – משום דאין בידינו למחות בעוברי עבירה כידוע (עיין מגן אברהם סעיף קטן יב). ומה קורין? כתב הרמב"ם סוף פרק ראשון דקורין "אם בחקתי" ברכות וקללות, ומפטירין בנביא בתוכחות מעניין הצרה. ומדבריו משמע שבבוקר לא היו קוראין כלל. וכן פירש רש"י במגילה (ל ב) דאין פנאי בשחרית לקרות בתורה מפני שהיו טרודים לחפש בעבירות, עיין שם. אבל הטור לקמן סימן תקעט כתב דבשחרית קורין בברכות וקללות ד"בחקתי", ומפטירין על דברי הבצרות, ובמנחה קורין "ויחל" ומפטירין "דרשו", כבכל התענית. והביאו שכן כתבו הגאונים. והטעם דבזמן הגמרא היתה הבדיקה בעבירות כהוגן, והיה כדאי לדחות קריאת התורה, משאין כן בזמן הגאונים, וכל שכן עתה (עיין לחם משנה שם). ואנחנו בכל תעניות קורין בשחרית ומנחה "ויחל", ובמנחה מפטירין "דרשו", לפי שאין לנו סדר תעניות בחוץ לארץ, כמו שנתבאר כבר.