Copy a lines of text file between given line numbers in java. This program is used for extracting logs from big logs file