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

Home » Public Forums » archive » READ array from a file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
READ array from a file [message #93085] Mon, 25 April 2016 07:09 Go to previous message
Sapna Mishra is currently offline  Sapna Mishra
Messages: 66
Registered: December 2015
Member
Hello All,

I have a file say:
Detail.txt with contents

name [1,2,3,4] [50.1,60.2,3.1,33.2]

I want to read this file, such as,

readcol,'Detail.txt',f='(A,I,F)',name,arr1,arr2

Such that I should get:
arr1[0]=1
arr2[0]=50.1

Can It be done?
Or other way out?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: READ ARRAY and extract the values
Next Topic: NetCDF4 problem

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

Current Time: Wed Oct 08 11:27:22 PDT 2025

Total time taken to generate the page: 0.00374 seconds