<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19046"></HEAD>
<BODY>
<DIV><FONT size=2 face=Arial><SPAN class=607231610-10062011>Dear
all,</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=607231610-10062011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=607231610-10062011>May I have some
advices in the way to read a (huge) text file including words and numbers ?
... </SPAN></FONT><FONT size=2 face=Arial><SPAN class=607231610-10062011>Let me
saying that both words and numbers are important and they have to be recorded
!</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=607231610-10062011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=607231610-10062011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=607231610-10062011>By using the
following way it works, but for huge text file including hundred thousands of
line it's too long ....</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=607231610-10062011>- reading each line
up to the end</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=607231610-10062011>- on each line
determining the space character localization to determine the
columns</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=607231610-10062011>- converting the
text in number using eval(part ....))</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=607231610-10062011>- recording
...</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=607231610-10062011>- and so
on</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=607231610-10062011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=607231610-10062011>Furthermore as often
I'm sure internal Scilab function exists providing better (and
faster) results ....</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=607231610-10062011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=607231610-10062011>I tried fscanfMAT
function (failed) as well as the read_csv one ... the previous function works
but how can I distinguish characters from numbers ? another function than
eval ?</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=607231610-10062011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=607231610-10062011>A basic example is
provided to well understand the request</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=607231610-10062011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=607231610-10062011>Thanks for any
advice</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=607231610-10062011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=607231610-10062011>Paul</SPAN></FONT></DIV></BODY></HTML>
<pre>--------------------------------------------------------------------------------
Le présent mail et ses pièces jointes sont confidentiels et destinés à la personne ou aux personnes visée(s) ci-dessus. Si vous avez reçu cet e-mail par erreur, veuillez contacter immédiatement l'expéditeur et effacer le message de votre système. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email.