comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: unformatted strings (reading)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: unformatted strings (reading) [message #5704] Wed, 07 February 1996 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
immel@gi.alaska.edu (Thomas Immel) wrote:
>
>
> Here's a question for anyone who reads unformatted strings.
> Is there a way to read a whole ,say 10 character, string at once
> in IDL? Here's what is happening to me.
>
>
>
> Thomas Immel
> Immel@geewiz.gi.alaska.edu
>

If you know the length of the string you want to read, you can
always do something like:

openw, 5, 'test'
writeu, 5, 'Whatever'
free_lun, 5
openr, 5, 'test'
s = string( replicate(32B, 8) ) ; String of 8 spaces
readu, 5, s
free_lun, 5
print, s
Whatever
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: LINKIMAGE under hpux
Next Topic: Re: Scientific Notation on Log Plots

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:23:09 PDT 2025

Total time taken to generate the page: 0.00367 seconds