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

MathGroup Archive 1994

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

Search the Archive

output to file

  • To: mathgroup at yoda.physics.unc.edu
  • Subject: output to file
  • From: yverband at vnet3.vub.ac.be (Yves Verbandt)
  • Date: Wed, 19 Jan 1994 18:54:33 -0800

Dear Mma people,

The little procedure below tries to write a list of couples, e.g. mylist =
{{1, 2}, {2, 3}, {3, 4}, {4, 5}}, to a file containing two columns
seperated by a space.  out gives the right output in Mma, but this is not
written properly to the file named filename_.

Any suggestions?

        BestandUit[mylist_, filename_] :=
                (KaleidaList := Table[SequenceForm[mylist[[i]][[1]], " ",
mylist[[i]][[2]]], {i, 1, Length[mylist]}];
                KaleidaForm := ColumnForm[KaleidaList];
                out = KaleidaForm;
                out >> filename)

Thank you in advance,

Yves.
==============================================================================
Yves Verbandt                                   tel. 32-2-641.34.54
Applied Physics Dept.                           fax.             50
Vrije Universiteit Brussel                      email yverband at vnet3.vub.ac.be
Pleinlaan 2, 1050 Brussel, BELGIUM                    yverband at vub.ac.be
============================================================================
==






  • Prev by Date: Call for Papers : Amsterdam, June 1994
  • Next by Date: Symbolic Linear Algebra Package
  • Previous by thread: Call for Papers : Amsterdam, June 1994
  • Next by thread: Symbolic Linear Algebra Package