Question: i need help with a program in C that uses the fscanf function to read a file. Your program will read in text from the

Your program will read in text from the given file poe-raven. txt using rediraction and save the text in an array. Storing multiple lines of text to an array requires a 2-D array - the first dimension refers to the number of rows (the number of lines) and the second dimension refers to the number of columns (the number of characters) of the longest line. Using good programming practice, you can use a \#define statement or a const int variable to hold the values of the number of lines and the length of a line. Use 200 for the number of lines (MAX LINE) and 100 for the length of the lines (MAX IINE IEN) as the number of lines is less than 200 and 100 is plenty big enough for the longest line. By using a \#define statement or a const int variable, you will not be hard-coding any loop conditions - it is typically preferred to not hard-code loop condition limits, especially when that value will be used in multiple locations in your code. The two ouputs of your program will be the text that you read in to the array, and the total number of lines in the text. As you fill up your array, you can keep track of the number of lines that are read each time a line is read in. Then you can use that value in the loop that will print the contents of the array back out. 1845 IHI RAVEN by Bdgar Al1an Poe Once upon a midniqhe dreary, while i pondered, weak and weary, over many a qualint and curtous volume of forgoteen lore, While I nodded, nearly napping, auddenly there came a tapping, As of aome one gently rapping, rapping at ay chamber door. "Tis bome yinitor," I mutered, "tapping at my chamber doorOnly thit, and nothing more." Nh. distinctly I resenber it was in the bleak December, And each separate dylng ember wrought its ghost upon the floor. Bagerly I wiahed the morrowt - vainly i had aought to borrow from my books aurcease of zorrow aorrow for the lost lenore= For the rare and radiant malden whom the angela name LenoreNanedesa here for evernore. And the ailken aad uncercain ruscling of each purple curcain Thrilled re-filled me with fantastic terrors never felt betore) So that now. to still the beating of my heart, i stood repeating. -iTis some visitor entreating entrance at my charber doorSome late viaitor entreating entrance at my chamber doorr This it is, and nothing more," Presently my aoul grew stronger; healtating then no longer, "5it," naid I. "or Madan, truly your forgivenesa I ieplorel But the fact is I was napping, and so gently you came rapping. And so faintly you came tapping, tapping at toy ohamber door, That I nearce was sure I heard you" - here I opened wide the doorf Darkness thete, and nothing moro. Deep into that darknens peering. long I atood thece wondering. fearing Doubting, dreaning dreaas no mortals ever dared to dreas beforef Dut the allence was unbroken, and the atillness gave no token, And the only word there spoken was the uhiapered word, "Lenoret" Thin I whinpered, and an echo murmured back the hord, "Leneret"Merely this, and nothing more. fiack into the chamber, turning, all ay moul within me borning, soon again I heard a capping nomewhat louder than before. "\$urely," gafd T, "surely chat in gomething at my ufindow lateicei Let me see, then. What thereat 10, and thin inystery exploreLet my heart be stili s moment and this mystery explorei
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
