1. Write a program that removes all blank lines from a fi le, whose name is input by the user. The output filename has the “new_” prefix to the input filename. (A blank line comprises only zero or...


1. Write a program that removes all blank lines from a fi le, whose name is input by the user. The output filename has the “new_” prefix to the input filename. (A blank line comprises only zero or more whitespace characters.)


2. Write a program that first creates a string (with the NUL) by appending each lowercase letter to a char array in a loop. The string must next be written to a fi le and read back for display.


3. Write a program that accepts a search string from the user and then searches a fi le foo (using a library function) for displaying all lines containing the string. If the string is not found, an appropriate message must be displayed.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here