|
![](/i/fill.gif) |
On 12-1-2012 3:26, Alain wrote:
> There is a coma before the closing brace.
> As it is now, you write eache elements and unconditionaly follow it with
> a coma, resulting in one superflous coma.
>
>
> Possible cure:
> Write the first element.
> Write a coma BEFORE each successive elements.
>
or, if you use a counter when writing away your data:
//Writing the last line in the file:
#if (i = Count)
#write (MyFile,MyValue,"\n")
#else
#write (MyFile,MyValue,",\n")
#end
But I guess that Alain's solution is faster.
Thomas
Post a reply to this message
|
![](/i/fill.gif) |