File are sequential so unless the lines are FIXED WIDTH in length and you can calculate the byte offset of XXX line number, then your only option is to COUNT line by line one at a time or by reading in "chunks" and splitting on carriage return/line feed. Either option still requires you to physically count the lines until you reach the target.