I cannot understand files I/O, I have the pseudo-code for the program and some code I tried, but I cannot ge it. Could you help me please?

*The input file is read character into an array. The array is a large array of 200 characters, and acts as temporary storage before being output after modification to a new file.

*The output file is written starting from the character at the end of the array, and taking characters from the array in reverse order until the start of the array is reached. Counter is used to keep track of where the read/write is currently accessing the array.

* Create an input text file using Windows notepad

#include <stdio.h>



void main()
{
// Initialise array of total 200 for characters
char name[200];

// Initialise single character for each read/write
FILE *f_input;

// Initialise variable for counter to zero
int counter=0

// Open input file
FILE *f_input = fopen("FILE.TXT", "r");


// While not at end of file (loop start)
while (f_input==NULL);

// read single character from input file
fget(f_input);

// Store character into array [counter]

// Increment counter by one
count=count+1
// End of loop code



// Close input file
fclose(f_input);
}


// Decrement counter by one (This moves counter back one position to end of array)
counter=counter-1

// Open output file (different filename to input file)
FILE *f_output

// While counter is greater than zero (loop start)
While (count=>0)

// Get current character at array [counter]

// Write this single character to output file
fput(
// Decrement counter by one
counter=counter-1

// End of loop code

Close output file
fclose(f_output);

// End
}