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 ------------------------------------------------------------------------------ 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
