[futurebasic] Re: [FB] Reading carriage returns

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2003 : Group Archive : Group : All Groups

From: Jay Reeve <jayreeve@...>
Date: Wed, 24 Sep 2003 00:21:57 -0500
>If an edit field contains two lines of Text and the lines are separated by a
>CR, how should I save and read? Reading with Input# or Line Input# will not
>read all of the original text since a CR terminates the operation. Is Write#
>and Read# the best solution? If so, should the length of the string be saved
>so it can be used with Read# ?
>Thanks
>Barrie

Barrie,

Personally, I would use WRITE FIELD and READ FIELD, but if your needs 
can guarantee you'll never have over 255 chars, then WRITE# and READ# 
can work.

If that's the route you choose, yes, I would save the length byte so 
you can use READ#.

  e-e
  =J= a  y
   "