<HTML dir=ltr><HEAD>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7601.17940"></HEAD>
<BODY>
<DIV dir=ltr id=idOWAReplyText96289>
<DIV dir=ltr> </DIV></DIV>
<DIV dir=ltr>
<DIV dir=ltr id=idOWAReplyText49325>
<DIV dir=ltr><BR> </DIV></DIV>
<DIV dir=ltr>
<DIV><FONT color=#0000ff size=2 face=Arial>Hello,</FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial>Using the official 5.4.0 scilab version, I have much difficulty to adapt the new csvRead function which replaces read_csv(). I've always used it easily to read alpha-numeric files but now it's not possible anymore.</FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial>Here is an example:</FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial>example of file to be treated:</FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV>//////////////////////////////////////////////////////////////////////////////////////////////</DIV>
<DIV><FONT size=2 face=Arial><EM>The first lines of this alpha-numerical file</EM></FONT></DIV>
<DIV><EM><FONT size=2 face=Arial>are only comments. The last line of the file is also comment.</FONT></EM></DIV>
<DIV><EM><FONT size=2 face=Arial>The following lines contain data to be sorted.</FONT></EM></DIV>
<DIV><EM>1; 5; 2.369</EM></DIV>
<DIV>
<DIV><EM>1; 5; 2.369</EM> 
<DIV><EM>1; 5; 2.369</EM> 
<DIV><EM>1; 5; 2.369</EM> 
<DIV><EM>1; 5; 2.369</EM> 
<DIV><EM>1; 5; 2.369</EM> 
<DIV><EM>1; 5; 2.369</EM> 
<DIV><EM>1; 5; 2.369</EM> 
<DIV><EM>1; 5; 2.369</EM></DIV>
<DIV><EM><FONT size=2 face=Arial>This is the last line of the file.</FONT></EM></DIV>
<DIV>/////////////////////////////////////////////////////////////////////////////////////////////////</DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff>Typing,</FONT></DIV>
<DIV> </DIV>
<DIV><STRONG><EM>data=read_csv('myfile',";")</EM></STRONG></DIV>
<DIV><STRONG><EM><SPAN style="COLOR: rgb(0,0,0)">data</SPAN><SPAN style="COLOR: rgb(74,85,219)">(</SPAN><SPAN style="COLOR: rgb(188,143,143)">1</SPAN><SPAN style="COLOR: rgb(255,170,0)">:3</SPAN><SPAN style="COLOR: rgb(0,0,0)">,</SPAN><SPAN style="COLOR: rgb(255,170,0)">:</SPAN><SPAN style="COLOR: rgb(74,85,219)">)</SPAN> <SPAN style="COLOR: rgb(92,92,92)">=</SPAN> <SPAN style="COLOR: rgb(74,85,219)">[</SPAN><SPAN style="COLOR: rgb(74,85,219)">]</SPAN><SPAN style="COLOR: rgb(0,0,0)">;</SPAN>                             // removes the 3 first comment lines</EM></STRONG></DIV>
<DIV><STRONG><EM><STRONG><EM><SPAN style="COLOR: rgb(0,0,0)">data</SPAN><SPAN style="COLOR: rgb(74,85,219)">(</SPAN><SPAN style="COLOR: rgb(188,143,143)">$</SPAN><SPAN style="COLOR: rgb(0,0,0)">,</SPAN><SPAN style="COLOR: rgb(255,170,0)">:</SPAN><SPAN style="COLOR: rgb(74,85,219)">)</SPAN> <SPAN style="COLOR: rgb(92,92,92)">=</SPAN> <SPAN style="COLOR: rgb(74,85,219)">[</SPAN><SPAN style="COLOR: rgb(74,85,219)">]</SPAN><SPAN style="COLOR: rgb(0,0,0)">;</SPAN>                                // removes thelast line of the file</EM></STRONG>                           <BR><SPAN style="COLOR: rgb(0,0,0)">data</SPAN>     <SPAN style="COLOR: rgb(92,92,92)">=</SPAN> <SPAN style="COLOR: rgb(50,185,185)">abs</SPAN><SPAN style="COLOR: rgb(74,85,219)">(</SPAN><SPAN style="COLOR: rgb(174,92,176); TEXT-DECORATION: underline">evstr</SPAN><SPAN style="COLOR: rgb(74,85,219)">(</SPAN><SPAN style="COLOR: rgb(0,0,0)">data</SPAN><SPAN style="COLOR: rgb(74,85,219)">)</SPAN><SPAN style="COLOR: rgb(74,85,219)">)</SPAN><SPAN style="COLOR: rgb(0,0,0)">;</SPAN></EM></STRONG></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)"></SPAN> </DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)"></SPAN> </DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)"><FONT color=#0000ff>I used to finding the following result: </FONT></SPAN></DIV>
<DIV><STRONG><SPAN style="COLOR: rgb(0,0,0)">ans =</SPAN><SPAN style="COLOR: rgb(0,0,0)"></SPAN></STRONG></DIV>
<DIV><SPAN style="COLOR: rgb(0,0,0)"><EM>1    5   2.369</EM> 
<DIV><SPAN style="COLOR: rgb(0,0,0)"><EM>1    5   2.369</EM> 
<DIV><SPAN style="COLOR: rgb(0,0,0)"><EM>1    5   2.369</EM> 
<DIV><SPAN style="COLOR: rgb(0,0,0)"><EM>1    5   2.369</EM> 
<DIV><SPAN style="COLOR: rgb(0,0,0)"><EM>1    5   2.369</EM> 
<DIV><SPAN style="COLOR: rgb(0,0,0)"><EM>1    5   2.369</EM> 
<DIV><SPAN style="COLOR: rgb(0,0,0)"><EM>1    5   2.369</EM> 
<DIV><SPAN style="COLOR: rgb(0,0,0)"><EM>1    5   2.369</EM> 
<DIV><SPAN style="COLOR: rgb(0,0,0)"><EM>1    5   2.369</EM></SPAN></DIV></SPAN></DIV></SPAN></DIV></SPAN></DIV></SPAN></DIV></SPAN></DIV></SPAN></DIV></SPAN></DIV></SPAN></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>
<DIV><FONT color=#0000ff size=2 face=Arial>But now it is not the case anymore?</FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial>Which functions could replace this in scilab 5.4.0?</FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial>Thanks in advance</FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial>Stéphane</FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></BODY></HTML>