<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#330000">
    I am sorry, i missunderstood your mail<br>
    <br>
    your problem comes from your file lines ending with Mac style end of
    lines (CR only) (see
    <a class="moz-txt-link-freetext" href="http://en.wikipedia.org/wiki/Newline#Representations">http://en.wikipedia.org/wiki/Newline#Representations</a>)<br>
    i tested under windows, and read_csv seems to need windows style end
    of lines (CR+LF). Are you running a Windows machine?<br>
    <br>
    you should be able to convert quickly Mac styles ends of line (EOL)
    to windows EOL. Myself, i use notepad++, Edit menu, End of lines,
    which will be far too long if you have to do this frequently.<br>
    <br>
    using csv_read instead of read_csv (see
    <a class="moz-txt-link-freetext" href="http://atoms.scilab.org/toolboxes/csv_readwrite/">http://atoms.scilab.org/toolboxes/csv_readwrite/</a>) might solve your
    problem. Allan?<br>
    <br>
    lastly, unhability of read_csv to parse files with exotic EOL
    characters can be considered as a bug (but might be considered as a
    "feature"), you might ocnsider to report a bug.<br>
    <br>
    best regards<br>
    <br>
    Le 29/04/2011 13:24, Adrien Vogt-Schilb a écrit :
    <blockquote cite="mid:4DBA9FDE.1040806@centre-cired.fr" type="cite">
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      hi<br>
      <br>
      you can try<br>
      <br>
      read_csv("myfile.csv"," ") //the second argument is a space
      between quotes<br>
      <br>
      read_cvs has a second optional argument, as stated in
      documentation, try: help read_csv<br>
      <br>
      best regards <br>
      <br>
      Le 29/04/2011 11:39, R Sippe a écrit :
      <blockquote
        cite="mid:SNT107-DS130756AF12D8D39E728BB2DF9A0@phx.gbl"
        type="cite">
        <div dir="ltr">
          <div style="font-family: 'Calibri'; color: rgb(0, 0, 0);
            font-size: 12pt;">
            <div>Dear Sir/Madam,</div>
            <div> </div>
            <div>I am new to Scilab and I want to use Scilab to analyze
              data contained in csv files.</div>
            <div>When I use read_csv(myfile.csv) it only returns the
              first row of the data.</div>
            <div> </div>
            <div>Opening the file in notepad shows that each row of data
              is separated by a space instead of a return.</div>
            <div>However these csv files are outputs of a program and I
              don’t want to change the format manually for each csv
              file.</div>
            <div> </div>
            <div>What is the best way to deal with this problem?</div>
            <div> </div>
            <div>Greets,</div>
            <div> </div>
            <div>Robin</div>
          </div>
        </div>
      </blockquote>
      <br>
      <br>
      <div class="moz-signature">-- <br>
        <style>
<!--
  p
        {margin:0pt;
           color:teal;
           font-family:"Cambria Math"
        font-size:12.0pt;
        }
-->
</style>
        <p><b>Adrien Vogt-Schilb</b></p>
        <p>Research Fellow</p>
        <p><a moz-do-not-send="true" a=""
            href="mailto:vogt@centre-cired.fr" style="text-decoration:
            none; color: teal;">vogt@centre-cired.fr</a></p>
        <p>Tel: (+33) 1 43 94 73 96</p>
        <p>Fax: (+33) 1 43 94 73 70</p>
        <table style="border: medium none; margin-left: 1pt; margin-top:
          4pt;" cellspacing="0">
          <tbody>
            <tr>
              <td style="padding: 0pt;">
                <p><img
                    src="cid:part1.06050304.01000405@centre-cired.fr"
                    alt="CIRED" width="54"></p>
              </td>
              <td style="padding: 0pt 7pt;" valign="middle">
                <p style="font-size: 10pt;">45 bis, Av de la Belle
                  Gabrielle</p>
                <p style="font-size: 10pt;">F-94736 Nogent-sur-Marne</p>
                <p style="font-size: 10pt;"><a moz-do-not-send="true"
                    href="http://www.centre-cired.fr/" style="color:
                    teal;">http://www.centre-cired.fr/</a></p>
              </td>
            </tr>
          </tbody>
        </table>
        <p> </p>
      </div>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <style>
<!--
  p
        {margin:0pt;
           color:teal;
           font-family:"Cambria Math"
        font-size:12.0pt;
        }
-->
</style>
      <p><b>Adrien Vogt-Schilb</b></p>
      <p>Research Fellow</p>
      <p><a a="" href="mailto:vogt@centre-cired.fr"
          style="text-decoration: none; color: teal;">vogt@centre-cired.fr</a></p>
      <p>Tel: (+33) 1 43 94 73 96</p>
      <p>Fax: (+33) 1 43 94 73 70</p>
      <table style="border: medium none; margin-left: 1pt; margin-top:
        4pt;" cellspacing="0">
        <tbody>
          <tr>
            <td style="padding: 0pt;">
              <p><img src="cid:part2.06090702.07010601@centre-cired.fr"
                  alt="CIRED" width="54"></p>
            </td>
            <td style="padding: 0pt 7pt;" valign="middle">
              <p style="font-size: 10pt;">45 bis, Av de la Belle
                Gabrielle</p>
              <p style="font-size: 10pt;">F-94736 Nogent-sur-Marne</p>
              <p style="font-size: 10pt;"><a
                  href="http://www.centre-cired.fr/" style="color:
                  teal;">http://www.centre-cired.fr/</a></p>
            </td>
          </tr>
        </tbody>
      </table>
      <p> </p>
    </div>
  </body>
</html>