I want to write a program in which
1.Number the lines in a file
2.Display n lines from a given line number.
3. Delete a particular line
4. Search for a given word and print all the lines where the word is found
i want to know what will be basic idea behind it after opening any file??