Re: Trouble with reading from file
- To: mathgroup at smc.vnet.net
- Subject: [mg72724] Re: Trouble with reading from file
- From: dh <dh at metrohm.ch>
- Date: Tue, 16 Jan 2007 03:51:47 -0500 (EST)
- References: <eofisf$h39$1@smc.vnet.net>
Hallo Martin, Data in OutputForm can not be easily reread. I think the simpliest solution is to recalculate and write with the option FormatType -> InputForm. If this is not acceptable, I would to read the whole file as a string and do the transformation using Regular Expressions or String Expressions. Daniel Martin Schnabl wrote: > I have computed fair number of data which I stored in a file using FormatType -> OutputForm option in OpenWrite. The trouble is that numbers like 10^6 are now written in two lines and I haven't managed to convince Mathematica to read back what it has written. Any advice ? >