Using Gets Fputs Functions Write C Program Reads Single Line Text Keyboard Writes New Fil Q26081201

a. Using the gets() and fputs() functions, write a C programthat reads a single line of text from the keyboard and writes it toa new file called output.txt.

b. Modify your program in part (a) such that it accepts multiplelines of text from the keyboard and writes each line to a filenamed “text.dat” until an empty line is entered.

This must be in C (stdio and stdlib)

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *