Ugh. Sorry for the noise.<div><br></div><div>LIMIT_COUNT looks useful, thanks Brad.</div><div><br></div><div>-Johan</div><div><br><br><div class="gmail_quote">On Fri, Feb 4, 2011 at 7:51 PM, Brad King <span dir="ltr"><<a href="mailto:brad.king@kitware.com">brad.king@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 02/04/2011 01:44 PM, David Cole wrote:<br>
> Don't you mean:<br>
> LIST(GET FOO 0 TEST)<br>
><br>
> FOO is the file(STRINGS result. "test" is the filename...<br>
><br>
><br>
</div><div class="im">> On Fri, Feb 4, 2011 at 1:03 PM, Johan Björk wrote:<br>
>     Is there a better way to write the above code? (Ie, get the first<br>
>     element, no matter if it's a list or not?)<br>
<br>
</div>Also, if you really only want to read the first string then use<br>
the LIMIT_COUNT option to file(STRINGS).<br>
<font color="#888888"><br>
-Brad<br>
</font></blockquote></div><br></div>