how would i go about writing a program that takes a txt file and printing the first 20 lines if i pressed m or pritning the previous 20 lines if i press p...is there an easy way to do this. any tips would be greatly appreciated. if you are showing me the pointer way can u plz explain in detail since im a newbie at pointers.