<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Le 23/05/2016 23:15, Florian Winter a
      écrit :<br>
    </div>
    <blockquote
cite="mid:CAE_7x9z3jhR657CLi4Gxeqii7x2HP4wpnbLe07+wn9AzCo=W0g@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello
        <div>I'm trying to write a function that reads data from a
          single file. It is a rather large file so I wanted to use the
          csvread function because it is faster than opening the file
          and then using scanf. </div>
      </div>
    </blockquote>
    I am surprised by the fact csvread is faster than mfscanf. mfscanf
    directly call C code while csvread is xritten in Scilab...<br>
    <br>
    <blockquote
cite="mid:CAE_7x9z3jhR657CLi4Gxeqii7x2HP4wpnbLe07+wn9AzCo=W0g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>The problem is, that my file is not a real csv file. It has
          different number of spaces in between every data entry.</div>
        <div>It looks like this:</div>
        <div><br>
        </div>
        <div>1 2  3   4   5 6 7   8<br>
        </div>
        <div>the spaces between each entry is the same in every row so
          between 1 and 2 there is a single space, between 2 and 3 there
          are two spaces, between 3-4 and 4-5 three spaces, 5-6 one, 6-7
          one and 7-8 three again.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Is there a faster way than opening the file and using a
          scanf?</div>
        <div><br>
        </div>
        <div>Thank you!</div>
        <div>Florian</div>
      </div>
      <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>