HP3000-L Archives

January 1997, Week 3

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:
Overman_James <[log in to unmask]>
Reply To:
Overman_James <[log in to unmask]>
Date:
Thu, 16 Jan 1997 17:54:58 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (21 lines)
Shivanand Hiremath ([log in to unmask]) wrote:

: I am facing the following  strange  behaviour of the pascal  'READLN()'  and
: 'READ()' functions on the MPE.
<SNIP>
: There is a file whose  record size is greater than 255 bytes.  This file can
<SNIP>
:       from 255 till the end of that  record.  The  next  call to  readln()
:       reads (at the most 254 chars) FROM THE BEGINNING OF THE NEXT RECORD.

: Any explaination for this strange behavior?

Pascal files of type TEXT (as accessed by readln) are limited to 254 bytes
with carriage control.  See the Pascal Programmer's Guide page 5-27.

Your error is in not using the language properly.  Open the files with
the appropriate file definition and you can do what you intend.

--
 James Overman HP Support Technology Lab  Roseville, CA

ATOM RSS1 RSS2