MathGroup Archive 1994

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

Search the Archive

output to file


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