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

Home » Public Forums » archive » Re: Format codes for comma separated data
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: Format codes for comma separated data [message #57750] Thu, 20 December 2007 13:32 Go to previous message
TFE is currently offline  TFE
Messages: 11
Registered: November 2001
Junior Member
Brian Larsen wrote:
> Here is a simple example of the issue:
>
> I made a test file called test_dat.txt that has a bunch of lines of
> a, b, 0, 1, 2, 3
> a, b, 0, 1, 2, 3
> a, b, 0, 1, 2, 3
> a, b, 0, 1, 2, 3
> a, b, 0, 1, 2, 3
> a, b, 0, 1, 2, 3
> a, b, 0, 1, 2, 3
>
>
> IDL> file = 'test_dat.txt'
> IDL> openr, lun, file, /get_lun
> IDL> a = strarr(6)
> IDL> readf, lun, a
> IDL> print, a
> a, b, 0, 1, 2, 3 a, b, 0, 1, 2, 3 a, b, 0, 1, 2, 3 a, b, 0, 1, 2, 3 a,
> b, 0, 1, 2, 3 a, b, 0, 1, 2, 3
>
>
> What I would hope to get would be:
> a, b, 0, 1, 2, 3
>

Brian,
this looks correct-
print, a[0] ;for the first line

Tom
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Format codes for comma separated data
Next Topic: IDL 7 on Ubuntu

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

Current Time: Sun Oct 12 14:43:49 PDT 2025

Total time taken to generate the page: 0.72180 seconds