Open Lines 1 - n ?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
mardough
Posts: 2
Joined: Tue Dec 02, 2008 2:59 pm

Open Lines 1 - n ?

Post 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!
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post 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.
Hope this was helpful.............good luck,
Bob
mardough
Posts: 2
Joined: Tue Dec 02, 2008 2:59 pm

thanks

Post by mardough »

Thanks for the info. Not exactly what I was after but definitely good to know.
Post Reply