I need a small program or a tool or a software which could do this following task :
I have a data folder where there are many text files. I need to delete last N lines from all these text files.
Can anyone please provide a sample java code to do this ?
my java version "1.8.0_66"
Alternatively ,if there is any software/tool could do the same task, please post the link to the software (if any).
thanks