Remove lines from a file: Difference between revisions

m
added a ;Task: (bold) header.
m (Added some comments)
m (added a ;Task: (bold) header.)
Line 1:
{{task}}[[Category:File handling]]
 
;Task:
The task is to demonstrate how to removeRemove a specific line or a number of lines from a file.
 
This should be implemented as a routine that takes three parameters (filename, starting line, and the number of lines to be removed).