I've just made the switch to GM8 and immediately encountered an oddity when reading lines in a file containing multiple values. This worked fine in GM7 but in GM8, each time a value of zero is encountered, it is as if GM8 just skips over it (actually it assumes it is part of the next number). This happens regardless of the separator used. I've tried commas, spaces, tabs. I've included a link to a zip file with a simple example. It reads data from 3 lines with 8 numbers in each line. If you open the Position.txt file, you can see what the data should look like and if you load Debug.txt in the debug window, you can see that whenever a zero is encountered, it was combined with the next number. So ...
10.1, 5.7, 0.0, 20.5,
is read in as:
10.1, 5.7, 0.0205, 0.0,
... it can't seem to tell that 0.0, is a number so includes the numbers from the next element, and then assigns zero for the last one as there is no "5th element".
example zip
Blutigeroo
Member Since 24 Jan 2011Offline Last Active Apr 05 2013 01:06 AM



Find content
Not Telling
