<div dir="ltr">Hi,<div><br></div><div><font face="times new roman, new york, times, serif"><span style="font-size:16px">Try this way</span></font></div><div><font face="times new roman, new york, times, serif"><span style="font-size:16px"><br></span></font></div><div><font face="times new roman, new york, times, serif"><span style="font-size:16px">*--------------------------------</span></font></div><div>InFile='data.txt';<br><br>* skipping the first line of the data file<br>res=read(InFile)<br><br></div><div>res=read(InFile)<br>returnCd=subwrd(res,1);<br><br>while (returnCd!=2) ;* Checking for end of file</div><div>latpt=subwrd(res,2);* say 'lat='latpt<br>lonpt=subwrd(res,3);* say 'lon='lonpt<br><br>* Reading next line<br>res=read(InFile)<br>returnCd=subwrd(res,1);* say 'rc='returnCd<br>endwhile ;* while (returnCd!=2) <br></div><div><span style="font-family:"times new roman","new york",times,serif;font-size:16px">*--------------------------------</span><span style="font-family:"times new roman","new york",times,serif;font-size:16px"><br></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 25 Jul 2019 at 15:35, E Mobarak <<a href="mailto:mobarak_e@yahoo.com">mobarak_e@yahoo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-m_6238827445222108091yahoo-style-wrap" style="font-family:"times new roman","new york",times,serif;font-size:16px"><div dir="ltr"><div dir="ltr"><span>Hi usr<br></span></div><div><span>how write scripts for read data from text file with some row and column <br></span></div><div dir="ltr"><span>for example<br></span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span>data.txt including<br></span></div><div dir="ltr"><span>lat lon name<br></span></div><div dir="ltr"><span>31 45 AA</span></div><div dir="ltr"><span>38 40 BB</span></div><div dir="ltr"><span> 25 50 CC</span></div><div dir="ltr"><span>thnaks<br></span></div><div dir="ltr"><span></span><br></div><div><br></div><div><br></div></div></div></div>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Dr. Martin V. Mathew<br>Project Scientist -2</div><div><span style="font-family:"Default Sans Serif",Verdana,Arial,Helvetica,sans-serif;font-size:small">Ocean Observation Systems</span><br style="font-family:"Default Sans Serif",Verdana,Arial,Helvetica,sans-serif;font-size:small"><span style="font-family:"Default Sans Serif",Verdana,Arial,Helvetica,sans-serif;font-size:small">National Institute of Ocean Technology</span><br style="font-family:"Default Sans Serif",Verdana,Arial,Helvetica,sans-serif;font-size:small"><span style="font-family:"Default Sans Serif",Verdana,Arial,Helvetica,sans-serif;font-size:small">Pallikaranai, Chennai,</span><br>India.<br></div><div><a href="https://www.researchgate.net/profile/Martin_Mathew" rel="nofollow nofollow" style="color:rgb(59,89,152);font-family:Helvetica,Arial,"lucida grande",tahoma,verdana,arial,sans-serif;font-size:14px;line-height:18px" target="_blank">https://www.researchgate.net/profile/Martin_Mathew</a></div><div><a href="https://scholar.google.co.in/citations?user=02RvXg4AAAAJ&hl=en" target="_blank">https://scholar.google.co.in/citations?user=02RvXg4AAAAJ&hl=en</a><br style="line-height:18px"><a href="http://www.dak.iitkgp.ernet.in/phd/profile.php?roll=09CL9405" rel="nofollow nofollow" style="color:rgb(59,89,152);text-decoration:none;font-family:Helvetica,Arial,"lucida grande",tahoma,verdana,arial,sans-serif;font-size:14px;line-height:18px" target="_blank">http://www.dak.iitkgp.ernet.in/phd/profile.php?roll=09CL9405</a><br></div><div><a href="https://www.scopus.com/authid/detail.uri?authorId=57190953029" target="_blank">https://www.scopus.com/authid/detail.uri?authorId=57190953029</a><br></div></div></div></div></div></div></div></div></div></div></div></div></div>