[Pharo-project] Printing an array on file without quotes

Oscar E A Callau oalvarez at dcc.uchile.cl
Thu Nov 25 16:57:20 CET 2010


Hi all again,

actually it was a very n00b question and the answer is simple:

Use #nextputAll: instead of #print

Greetings

On Nov 25, 2010, at 11:37 , Oscar E A Callau wrote:

> Hi all,
> 
> I'm trying to print arrays using:
> 
> FileStream forceNewFileNamed: 'path/file' do: [ :stream |
> 	...
> 	stream print: myArray asCommaString withoutQuoting .
> 	... ]
> 
> The printing works well, but in the file, I get something like this:
> 
> 'numbers, 1 , 2 , 3 , 4'
> 
> with quotes!. This is a little annoying, because I'm forced to manually remove the quotes. Is there a way to get the printed file without quoting?
> 
> Sorry for my n00b question .
> 
> 
> Thanks in advance.
> 
> P.S.: Pharo image 1.1.1
> 
> Oscar E. A. Callaú





More information about the Pharo-project mailing list