My c program, as currently written, is supposed to open a text file based on the users input. For example I have created a text file named test.txt, which has the contents "ABC123" in it, and I type "test.txt" when prompted by the program. The program will then read the data stored in the specified text file and move on to the menu option. The menu has three options for the user to chose from. After the user make the selection the program will take the selection and use it once i have written the rest of the program. The program is accepting my input of "test.txt" but then skips scanf function in the menu declaration, I believe this to be as a result of the enter key accidentally remaining in the buffer but so far my attempts to fix the issue has been unsuccessful. Update: The text file and the menu are unrelated. The object of the program is to tell it where to open a text file in your computer and then select one of the options from the menu to tell the program what to have done with the text file. The text file is not making the menu selection.