<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Hello Daniel,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">In addition to Antoine simple and
efficient solution, the following works as well (and may be a bit
faster for big files. To be confirmed):<br>
</div>
<div class="moz-cite-prefix">
<pre style="font-family:Monospaced;font-style:normal;font-size:15.0;"><span style="color:rgb(0,0,0);">File</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">output.txt</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">m</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(50,185,185);">read</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">File</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(92,92,92);"> -</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(0,0,0);">, </span><span style="color:rgb(50,185,185);">size</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(50,185,185);">mgetl</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">File</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">1</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><span style="color:rgb(188,143,143);">2</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>
Regards
</pre>
</div>
<p><br>
</p>
<div class="moz-cite-prefix">Le 10/09/2020 Ã 00:03, Daniel Stringari
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:1599689009071-0.post@n3.nabble.com">
<pre class="moz-quote-pre" wrap="">Good evening everyone,
I'm integrating scilab with other software, so I need to read an output file
(.txt), like the one attached (output).
It is worth mentioning that this file does not always have the same
dimensions (matrix), so I am trying to find something robust that can deal
with this particularity. I tried to use the 'csvread' function and the
'read' function, but I still haven't been successful ... Any suggestions?
output.txt <a class="moz-txt-link-rfc2396E" href="http://mailinglists.scilab.org/file/t498028/output.txt"><http://mailinglists.scilab.org/file/t498028/output.txt></a>
</pre>
</blockquote>
<br>
</body>
</html>