<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Thanks Serge,<br>
    <br>
    That seems to be the most convenient solution to me.<br>
    <br>
    Regards,  Jens<br>
-----------------------------------------------------------------------------------<br>
    <div class="moz-cite-prefix">Am 03.03.2017 21:58, schrieb Serge
      Steer:<br>
    </div>
    <blockquote cite="mid:cc6c3dc2-e5fe-8ac7-a142-5777af3222f7@inria.fr"
      type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <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=ISO-8859-1">
        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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a moz-do-not-send="true" 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>
      <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>
    <br>
  </body>
</html>