[Scilab-users] text file reading with fixed width field separated by space character

David Chèze david.cheze at cea.fr
Tue Apr 23 17:37:21 CEST 2013


Hi 

I'm trying to read a text files generated by another ("old") program which i
can't modify or configure: fields are separated by 2 dots and one of the dot
can be replaced by a negative sign mark - thus keeping the filed's width
constant. 
There's an issue when importing data into scilab thanks to the function
powerful csvRead function : it interprets the 2 consecutive dots as 2
variables thus it expects that this is the case along the whole file: and it
is not the case as soon you have a negative value (see attached file).
issue-readCsv.txt
<http://mailinglists.scilab.org/file/n4026583/issue-readCsv.txt>  

I know that the text file format is not very reliable but it is what i have
: do you have any workaround using csvRead function as it is?


Thanks,

David



--
View this message in context: http://mailinglists.scilab.org/text-file-reading-with-fixed-width-field-separated-by-space-character-tp4026583.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list