Subject: | |
From: | |
Reply To: | |
Date: | Mon, 4 Dec 2000 13:31:45 -0600 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
:INPUT MYVAR;READCNT=7 < MYFILE
:SHOWVAR MYVAR
"Sohrt, Jeff" wrote:
>
> I call upon the esteemed gurus of the 3k-l...
>
> Can someone explain how to print the first few bytes of a file. All I can
> think of is a Vesoft.MPEX way but given the mass of Posix stuff in
> HPBIN.SYS, I was hoping for a non 3rd-party semi-elegant way of doing this.
>
> Basically I want a PRINT myfile;END=1 but I don't want to see the whole
> record, only the first seven bytes.
>
> An MPE way would be to build a 7 byte file, copy in the source, then print
> out the new file, but that's kind of ugly.
>
> I appologize if the obvious is escaping me today, go easy.
>
> Thanks in advance,
> jds
|
|
|