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 ============================================================================ ==