- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looking for some advice on converting a read in string of parameters to a read list of variables?
I have a file that has field names that was read from another file. These field names look like:
'time gtkw stm1 dum2 dum4 dum1 pcd tcd dum2 ttx dpex pt'
and after being read as a string they have the single quotes.
Is there a straightforward way to convert these string names into a variable name to be read from another file like below?
OPEN (6,FILE=TRIM(filepath),STATUS='unknown',FORM='formatted', SHARE='denywr')
Read(6,*) time gtkw stm1 dum2 dum4 dum1 pcd tcd dum2 ttx dpex pt
Thanks
I have a file that has field names that was read from another file. These field names look like:
'time gtkw stm1 dum2 dum4 dum1 pcd tcd dum2 ttx dpex pt'
and after being read as a string they have the single quotes.
Is there a straightforward way to convert these string names into a variable name to be read from another file like below?
OPEN (6,FILE=TRIM(filepath),STATUS='unknown',FORM='formatted', SHARE='denywr')
Read(6,*) time gtkw stm1 dum2 dum4 dum1 pcd tcd dum2 ttx dpex pt
Thanks
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page