MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

read data in the "1.234*10^-8" form?


Hi, ALL:

I have a output, input format quesstion:

I output a series of data to a file with:

streamout1 = OpenWrite["afile"];
For[i=0....
       Write[streamout1, expr[[i]] ];
   ];
Close[streamout1];
Clear[streamout1]

then the "afile" in a column format is:
0
0.1
0.2
1.1*10^-8
2.2*10^-8
3.3*10^-8
...

but when i try read the data in "afile" use:

ReadList["afile", Real]

it only read the 0, 0.1, 0.2.
it can't read the format in "*10^-8"

Now my question is:
(1). How to let the program can read "*10^-8" ?
(2). or is there a way that i can output to "afile"
     in the format like "1.1e-8" that the Mathematica 
     can read? 


Thanks very much.... 

Jihshin
ahq at mail.utexas.ede


  • Prev by Date: Re: GrahicsArray/Text
  • Next by Date: need help with surface polygons
  • Previous by thread: Re: Plotting two functions on different y-axes
  • Next by thread: need help with surface polygons