HP3000-L Archives

December 2000, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Erik Vistica <[log in to unmask]>
Reply To:
Erik Vistica <[log in to unmask]>
Date:
Mon, 4 Dec 2000 13:31:45 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
: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

ATOM RSS1 RSS2