Write a program to delete a specified line in textile.should execute as ./a.out <linenumber> <filename> | Sololearn: Learn to code for FREE!

-3

Write a program to delete a specified line in textile.should execute as ./a.out <linenumber> <filename>

In Linux OS program should be in command line.

10/22/2020 5:29:39 PM

SAMARASIMHA REDDY

1 Answer

New Answer

+2

I think it will be required to enter the file name as user input stored in array of char but the use of argv is also required to check if user will give filename and line number as command line argument .the code will be executed as this example: ./a.out file 6