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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started