Question: Write a C program that creates a text file called MyFile1.txt and write your name and surname (read from a string using fprintf function) inside
Write a C program that creates a text file called "MyFile1.txt" and write your name and surname (read from a string using fprintf function) inside the file. Your file should be created inside the same folder as your program exists in.
Your program should also include a function void append() which appends your student number (read from a string) to MyFile1.txt whenever it is called in the main function. (Ask the user if they want to append or not)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
