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

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to