myOut.printf("%4d", rnumber);
That code will write one number to a file.
Where is the code to write the rest of the numbers to the file?
Type: Posts; User: Norm
myOut.printf("%4d", rnumber);
That code will write one number to a file.
Where is the code to write the rest of the numbers to the file?
That sounds like the code is writing the current number to the file replacing all the other values written to the file. Only the last number written will be in the file.
If you want all the data...
What is written to the output file?