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.

computer science

Description

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.

Instruction Files

Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.