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, 22.06.2019 18:00
Determine whether the following careers would require training or college.
Answers: 1
question
Computers and Technology, 24.06.2019 22:30
When can you access the bios setup utility?
Answers: 1
question
Computers and Technology, 25.06.2019 02:00
Software and services are used to conceive, plan, and execute projects in any field. these tools are excellent methods of increasing the probability of successful projects. open source linux project management mind-mapping
Answers: 2
question
Computers and Technology, 25.06.2019 14:40
Which of the following is the definition of role-based access control ( rbac)? (a) ensures that data has not been accidentally or intentionally modified without authorization. (b) access control system where rights are assigned based on a user’s role rather than his or her identity. (c) ensures that private or sensitive information is not disclosed to unauthorized individuals. (d)the principle in which a subject—whether a user, an application, or another entity—should be given the minimum level of rights necessary to perform legitimate functions.
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, 05.05.2020 08:44
question
Mathematics, 05.05.2020 08:44
question
Mathematics, 05.05.2020 08:44
Questions on the website: 13722363