<div dir="ltr"><div><div><div>The question leaves out many details. What is it that you want?<br><br></div> x = asciiread("foo.txt",-1,"integer") ; x will be one-dimensional<br></div><div> nx = dimsizes(x)<br></div><div> print("nx="+nx)<br></div><div> print("---")<br></div> print(x)<br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 17, 2017 at 11:25 PM, Zhang, Xiao <span dir="ltr"><<a href="mailto:xiao.zhang@pnnl.gov" target="_blank">xiao.zhang@pnnl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi I have a question in processing a file. Each line of this file has different length. For example, first line has 5 integers and second line has 9. And there are over 4000 lines. Is there a good way to deal with it? Thanks!<br>
<br>
<br>
______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div>