Exercise: File Reading and Writing

Write code to solve the problem.

Question

Write a program that reads the names of fruits from fruits.txt, reverses each string, and outputs them to output/outfile.txt.

Exercise: File Reading and Writing

Write code to solve the problem.

Question

Write a program that reads the names of fruits from fruits.txt, reverses each string, and outputs them to output/outfile.txt.

C
#include<stdio.h>
int main(void) {
// Write your code here
return 0;
}