[Scilab-users] {EXT} Count specific values in text file

Dang Ngoc Chan, Christophe Christophe.Dang at sidel.com
Tue Feb 11 13:19:07 CET 2020


Hello,

> De la part de arctica1963
> Envoyé : mardi 11 février 2020 13:11
>
> I have text files of Pi and e to a million places [...]
>
> I can open the text file with pinum=mopen('pi-million.txt','rt') - but does it
> need to be changed to a vector where each value is an element?. At the
> moment the text file is just a single line of numbers (no decimal pint at the
> start (e.g. 314159...etc).

You might have a look at csvRead and csvTextScan

https://help.scilab.org/docs/6.0.2/en_US/csvRead.html

https://help.scilab.org/docs/6.0.2/en_US/csvTextScan.html

Hope this helps,

regards

--
Christophe Dang Ngoc Chan
Mechanical calculation engineer

General
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



More information about the users mailing list