subject

IN C LANGUAGE 16.15 Lab 5: filter
Name this program filter. c.
The program takes two command line arguments: the name of an input file and the name of an output file. The program should confirm the input and output files can be opened. If a file cannot be opened, print the error message Cannot open file '' where is the name of the file and return.
fopen() will return 0 if it fails to open a file.
Then, the program will read the file string by string (up to 50 characters in length). If the string consists of only uppercase and lowercase characters, print it.
You can use isalpha(char) declared in ctype. h to check whether a character is a-z or A-Z.
continue and break might be useful.
Don't forget to close your files!
Examples
./a. out example. txt output. txt
example. txt output. txt
The Quick Brown Fox Jumps over the Lazy The Quick Brown Fox Jumps
Old Dog. ALABAMA? over the Lazy Old Roll
Roll Tide!!! P2P 1831 (UA)
./a. out does_not_exist. txt output. txt
Cannot open file 'does_not_exist. txt'

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 10:00
(, urgent need): how do i change my username
Answers: 1
question
Computers and Technology, 24.06.2019 19:30
Which phrase is the best definition of a pivottable a a table containing data that is organized horizontally b a table used to calculate financial pivot values c a tool used to summarize data d a table containing specific formatting
Answers: 1
question
Computers and Technology, 25.06.2019 04:30
If you have watched pretty little liars(pll)what are the names of the main characters? all of them and the boyfriends and girlfriends too.
Answers: 2
question
Computers and Technology, 25.06.2019 08:00
Beginning in the 1940s, first-generation computers used circuitsvacuum tube technologylaser technologytransistors
Answers: 2
You know the right answer?
IN C LANGUAGE 16.15 Lab 5: filter
Name this program filter. c.
The program takes two co...
Questions
question
Mathematics, 22.01.2021 01:00
question
Mathematics, 22.01.2021 01:00
question
French, 22.01.2021 01:00
question
Chemistry, 22.01.2021 01:00
question
Mathematics, 22.01.2021 01:00
question
Mathematics, 22.01.2021 01:00
question
Chemistry, 22.01.2021 01:00
question
English, 22.01.2021 01:00
question
Mathematics, 22.01.2021 01:00
question
Social Studies, 22.01.2021 01:00
Questions on the website: 13722362