#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define MAX 41
int main(void)
{
FILE* fp;
char words[MAX];
int count = 0;
_Bool in_number=0;
long position;
long num_count=0;
char ch;
char temp[MAX];
if ((fp = fopen("wordy", "a+")) == NULL)
{
fprintf(stdout, "Can't open \"wordy\" file.\n");
exit(EXIT_FAILURE);
}
puts("Enter words to add to the file; press the #");
puts("key at the beginning of a line to terminate.");
fseek(fp, 0L, SEEK_END);
position = ftell(fp);
for (num_count = 1L; num_count <= position; num_count++)
{
fseek(fp, -num_count, SEEK_END);
ch = getc(fp);