Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1993
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1993

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

Search the Archive

re: Sending data to a file

  • To: MATHGROUP at yoda.physics.unc.edu
  • Subject: re: Sending data to a file
  • From: GER.XSE0027 at applelink.apple.com (Germany - RL Jakschewitz,Nrnbrg,IDV)
  • Date: 26 Apr 93 21:46 GMT

in message <9304260436.AA28623 at yoda.physics.unc.edu> David Deutsch writes:
 
> data = {{1,2},{2,5},{3,-2},{4,7}}
>
>
> How can I write this data to file so that in the file it has the
> following form:
>
>   1  2
>   2  5
>   3 -2
>   4  7
 
OutputForm[ TableForm[ data,
      TableAlignments->{Top,Right},
      TableSpacing->{0,1}
   ]
] >> "dataFile"
 
should do just what you want.
 
Roland Jakschewitz
 
------------------------------------------------------------------------
  RL  Jakschewitz
    Geuderstr. 7                       AppleLink:  GER.XSE0027
D-8500 NUERNBERG 20                    Tel:        +49 - 911 - 26 13 13
      Germany                          UUCP:       rlj-nbg at infohh.rmi.de
------------------------------------------------------------------------
 






  • Prev by Date: Re: Compile AND Remember
  • Next by Date: re: Sending data to a file
  • Previous by thread: Re: Sending data to a file
  • Next by thread: re: Sending data to a file