Question: Write a C language program that read the file: for example, create a file name data.dat in that file will include a bunch of line

Write a C language program that read the file:

for example, create a file name "data.dat"

in that file will include a bunch of line of data for example:

werkmdfgs;

ijkat12fA&?41a

123!#A?123

Then the program will read that file

What file: word.dat ( user input name of the file)

the program will print this:

Lines: 3 (number of lines in the file)

Longest: line: 2 (print longest line number)

size: 14 (length of the longest line text)

Text: ijkat12fA&?41a ( print what is on the longest line)

A: 4 ( number of lowercase and uppercase ("a" and "A") in the file)

Digits: 10 (how many numeric digits in the file)

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!