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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!