Page 1 of 1

Open Lines 1 - n ?

Posted: Tue Dec 02, 2008 3:03 pm
by mardough
Hi,

I frequently use textpad to look at large data sets, and often I only need to see a small portion of the set at a time to get an idea of format, layout, etc.

Anybody know of a way to open lines 1 - n when opening a file? For example, I might just want to see the first 100 rows of data.

Thanks!

Posted: Tue Dec 02, 2008 6:06 pm
by Bob Hansen
This is probably the closest you can get to ..... from the Help file:
If the filename to be edited (not printed) is followed by "(<line>[,<col>])", with no intervening spaces, the file will be opened with the cursor at that position. If <line> is a hex number (eg. 0x1a22), a hex view of the file will be created, with the cursor at that address.
eg. TEXTPAD.EXE -ac "Read me.txt"(51,20)

In this example TextPad will start up and open "Read me.txt" at line 51, column 20 and display it in a cascaded window.
-------------------------

This will at least open up, starting at the first line, but will not be limited to any more lines, the rest of the file will appear. Actually the whole file will appear, but the cursor will be positioned at the line designated.

thanks

Posted: Tue Dec 02, 2008 6:10 pm
by mardough
Thanks for the info. Not exactly what I was after but definitely good to know.