<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
The ‘read’ function is alive and well. Perhaps you are trying to use it as a grads command instead of a script command? Or maybe you are forgetting to capture the information returned by read into another script variable? You should share (in the simplest way
possible) your specific use of ‘read’ and the error message you get back.
<div><br>
</div>
<div>file=‘blah.txt’</div>
<div>rest=read(file)</div>
<div>line1=sublin(rest,1)</div>
<div>line2=sublin(rest,2)</div>
<div>retc=subwrd(line1,1)</div>
<div>if (retc=0)</div>
<div>* do something with the string in the script variable called line2 </div>
<div>else</div>
<div> say ‘finished reading ‘file</div>
<div>endif<br>
<div><br>
</div>
<div>—Jennifer</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<div>
<div>On Apr 12, 2016, at 10:00 AM, Rick Danielson <<a href="mailto:onto.limbo@gmail.com">onto.limbo@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite"> There remains a reference to "read" at<br>
<br>
<a href="http://cola.gmu.edu/grads/gadoc/script.html#intrinsic">http://cola.gmu.edu/grads/gadoc/script.html#intrinsic</a><br>
<br>
but as of grads-2.0.2 and above, this intrinsic function<br>
appears to be unrecognized. Having the option to read<br>
some simple ASCII data and add a few extra marks on<br>
a graphic seems worthwhile. Is it now only an option<br>
to do so via, say, pygrads?<br>
_______________________________________________<br>
gradsusr mailing list<br>
gradsusr@gradsusr.org<br>
http://gradsusr.org/mailman/listinfo/gradsusr<br>
</blockquote>
</div>
<br>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="font-size: 12px; orphans: 2; widows: 2;">--</div>
<div style="font-size: 12px; orphans: 2; widows: 2;">Jennifer Miletta Adams<br>
Center for Ocean-Land-Atmosphere Studies (COLA)<br>
George Mason University<br>
<br>
<br>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
</body>
</html>