[Gambas-user] Extra gb.newline ?

Rolf-Werner Eilert eilert-sprachen at ...221...
Fri Jun 10 17:17:59 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
>

Just to make a guess: In test.txt, after the 10, you typed a CR? Then 
the line is separated into
1
2
3
...
10CR

and when it's randomized, the "10CR" lands somewhere within the new 
string and produces this effect when saved into a new file.

Rolf






More information about the User mailing list