Write a program that requests for a fi le name and an integer, known as offset value. The
program then reads the fi le starting from the location specified by the offset value and prints
the contents on the screen.
Note: If the offset value is a positive integer, then printing skips that many lines. If it is
a negative number, it prints that many lines from the end of the file. An appropriate error
message should be printed, if anything goes wrong.