| Author |
Comment/Response |
yehuda ben-shimol
|
05/17/08 1:25pm
In Response To 'Re: reading from file' --------- Certainly not a bug. You missed the point.
My previous answer directed you to read the numbers as strings, so zeros would appear as characters.
You still insisted to read the file content as a list of numbers, and for that case there is no point of keeping leading zeros.
Anyway, if these leading zeros are the problem at hand, you can read the file as numbers, and then use the function IntegerDigits with the correct base and length parameters
for example
IntegerDigits[
ReadList["C:\\number1.txt", Number, RecordLists -> False], 2, 9]
yehuda
URL: , |
|