In the MEL command command ref it recommends using fprint to write to a text file.
As Chris suggested make it print the array, also if you have an int in a float array, dont know why but maya thinks its a int eventhough you tell it it's a float, you need to have the .XX after the number eg 0.0 to make a float.
"No pressure, no diamonds" Thomas Carlyle