IN C LANGUAGE
16.15 Lab 5: filter
Name this program filter. c.
The program takes two co...
Computers and Technology, 12.03.2021 15:30 kayleemiller5669
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'
Answers: 2
Computers and Technology, 23.06.2019 16:30, azainababbas
20 points archie wants to use a reflector as he photographs a newlywed couple. what would he consider in his choice? a. shadow and sunny b. homemade and professional c. lamps and boards d. incident and reflected e. neutral density and enhancement
Answers: 3
Computers and Technology, 24.06.2019 02:20, Jonny13Diaz
The first time a user launches the powerpoint program, which view is shown allowing the user to access recent presentations or create new presentations based on templates?
Answers: 1
Computers and Technology, 24.06.2019 06:30, toolazytobehuman
Me and category do i put them in because this is science
Answers: 1
Mathematics, 03.02.2022 05:20
Mathematics, 03.02.2022 05:20
Social Studies, 03.02.2022 05:20
SAT, 03.02.2022 05:20
Mathematics, 03.02.2022 05:20
Mathematics, 03.02.2022 05:20
Mathematics, 03.02.2022 05:20