Question: First create a data file called data1.txt. The contents of this file should be: little minds discuss persons, average minds discuss events, great minds discuss

First create a data file called data1.txt. The contents of this file should be:

little minds discuss persons, average minds discuss events, great minds discuss ideas.

Using the ftell(), fseek() and fread() functions, write a C program that reads the file data1.txt created above, and prints out each vowel in the file along with its position in the file. Your program should also print out the letter immediately before the vowel, as an uppercase letter, if one exits. For example, using the file above, your program should output:

Byte 1: i

Letter before: L

Byte 5: e

Letter before: L

Byte 8: i

Letter before: M

Byte 14: i

Letter before: D

etc.

Byte 30: a

Letter before:

etc

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!