[Gambas-user] Extra gb.newline ?

Rolf-Werner Eilert eilert-sprachen at ...221...
Fri Jun 10 16:57:22 CEST 2011


Am 09.06.2011 21:23, schrieb Jussi Lahtinen:
> Hi!
> I made small simple command line program to shuffle data (see attachment),
> but there is strange problem.
> For some reason extra newline is inserted.
>
> If I run this program with command;
> ./Shuffler.gambas test.txt test2.txt ,
>
> Then data like this;
> 1,2,3,4,5,6,7,8,9,10
>
> Turns into something like this;
> 7,9,10
> ,6,8,2,5,3,4,1
>
> Seems like extra newline is always after number 10. Bug?
>
> Gambas 3 rev 3871 @ Ubuntu 11.04 64bit
>
> Jussi
>

By the way, seeing through your code, why do you try to open the file 
for write create first and then use file.save? What would be the 
disadvantage of using TRY file.save alone?

Rolf




More information about the User mailing list