[Scilab-users] csvWrite trouble

A. Vogt-Schilb vogt at centre-cired.fr
Sat Nov 24 12:44:04 CET 2012


Hi

Make sure you use the last versions.

I had noticed a bug like this in my windows machine. It was worked around telling csv to use Linux ends of line. Something like csv_default("eol", "unix ")

best thing to do to debug is open your csv with a good text editor and show all characters to see what end of line chars are being used 

Sent from my phone 

Paul Carrico <paul.carrico at free.fr> wrote:

>Hi,
>
> 
>
>It's a pity but when I use csvWrite function, each line is separated by a
>blank line ..
>
> 
>
>Paul
>
> 
>
>#####################################################
>
>mode(0)
>
> 
>
>PATH = get_absolute_file_path("test_csvWrite.sce");
>
>FILE_NAME = "test_csvwrite.csv";
>
>A = rand(10,3);
>
> 
>
>// test
>
>csvWrite(A,PATH+FILE_NAME,",");
>
> 
>
> 
>
>Result :
>
>0.50153415976092219,0.28064980218186975,0.40948254754766822
>
>0.43685875833034515,0.12800584640353918,0.87841258011758327
>
>0.26931248093023896,0.77831285959109664,0.11383596854284406
>
>0.6325744865462184,0.2119030449539423,0.19983377400785685
>
>0.40519540151581168,0.11213546665385365,0.56186607433483005
>
>0.91847078315913677,0.68568959552794695,0.58961773291230202
>
>0.043733433354645967,0.15312166837975383,0.68539796629920602
>
>0.48185089323669672,0.69708506017923355,0.89062247332185507
>
>0.26395560009405017,0.84155184263363481,0.50422128057107329
>
>0.41481037065386772,0.40620247554033995,0.34936154074966908
>
>
>_______________________________________________
>users mailing list
>users at lists.scilab.org
>http://lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20121124/fdef7b04/attachment.htm>


More information about the users mailing list