[scilab-Users] how to write strings into a file without leading blank

Peter Hinow hinow at uwm.edu
Fri Sep 10 16:51:33 CEST 2010


Dear Pierre,
thank you for the response. I found out that it works fine with mfprintf(unit,'xxxxx'). In my opinion, there is some redundancy here or a lack of documentation. As I see it, mopen and file('open',...) do the same thing, but not quite.
Best regards,
        Peter

----- Original Message -----
From: "Pierre MARECHAL" <pierre.marechal at scilab.org>
To: users at lists.scilab.org
Sent: Friday, September 10, 2010 1:25:50 AM
Subject: Re: [scilab-Users] how to write strings into a file without leading blank

  Le 09/09/2010 23:51, Peter Hinow a écrit :
> Dear fellows,
> how can I write strings into a file without leading blank? With
> write(unit,'xxxxx')
> I obtain
>   xxxxx
> but I want
> xxxxx
> It does not seem to be an issue of the string (I tried stripblanks, but that does not change the result).
> Thank you for all help.
> Cheers,
>       Peter
>
Hi peter,

mputl('text','yourfile.txt');
=> http://www.scilab.org/product/man/mputl.html

Cheers,

Pierre

-- 
==============================================
Pierre MARECHAL
Ingénieur Support et Développements
                    ------
Consortium Scilab
Digiteo
Domaine de Voluceau
Rocquencourt - B.P. 105
78153 Le Chesnay Cedex
                    ------
Tél : +33.1.39.63.56.81
==============================================


-- 
Peter Hinow, PhD
Department of Mathematical Sciences
University of Wisconsin - Milwaukee
P.O. Box 413
Milwaukee, WI 53201-0413
USA
phone: ++1 414 229 4933
https://pantherfile.uwm.edu/hinow/www/




More information about the users mailing list