<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">You can proceed as follow without any
change in your file:<br>
<br>
u=mopen("myfile","r");<br>
header=mgetl(u,4)<br>
<br>
data=mfscanf(-1,u,"%f %f\n")<br>
<br>
Le 03/03/2017 à 13:09, Jens Simon Strom a écrit :<br>
</div>
<blockquote cite="mid:58B95CEA.3060909@hslmg.de" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
Hi, <br>
with<br>
<pre style="font-family:Monospaced;font-style:normal;font-size:13.0;"><font face="Courier New, Courier, monospace">x=read(file,-1,2)</font>
</pre>
I can read the data from a text file containing e. g. <br>
<br>
1 2.12 First line of text file<br>
2.12 3.2<br>
3 2<br>
4 2<br>
5 2.<br>
6 2<br>
7 2 <br>
Last line empty<br>
<br>
What can I do to read only the numbers from a text file like<br>
<br>
Header 1 First line of text file<br>
Header 2<br>
<br>
<br>
1 2.12<br>
2.12 3.2<br>
3 2<br>
4 2<br>
5 2.<br>
6 2<br>
7 2<br>
Last line empty <br>
<br>
where the data start in the 5th line?<br>
<br>
Regards, Jens<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>