MathGroup Archive 2005

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

Search the Archive

Re: Write, Put,..


Uli Würfel wrote:

> Hi there,
> 
> I used Export to get my data into a file. But now
> I would like to write text and arrays of numbers in a more direct way.
> My problem is that everytime I call e.g. PutAppend or WriteAppend
> Mathematica starts a new line. Is it not possible to control the output
> to a file in the same way like with outstream in C++??
> I mean, e.g. to output an element of an array, and then a tab and then
> maybe a word,...

WriteString is your friend, look up chapter 2.12.3 for more information of
writing to files. You will need to use convert the expressions to strings
yourself, though...

albert


  • Prev by Date: Re: Read a delimited text file into a mathematica
  • Next by Date: Re: Converting Rationals into Reals
  • Previous by thread: Re: Write, Put,..
  • Next by thread: Re: Write, Put,..