Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'write data in to a file' topicStudent Support Forum > General > Archives > "write data in to a file"

Next Comment >Help | Reply To Topic
Author Comment/Response
Song Chen
09/19/07 4:17pm

Hi All,
I want to write data to a text file. For example, I have a list A where A={1,2,3,4,5}.
I want to write A to a txt file named 1.txt.
I use Write to do this but what I got in 1.txt is
12345
or
1
2
3
4
5
How can I get the format in 1.txt as
1 2 3 4 5
? I can not get the spaces between the numbers.
Thanks a lot.

URL: ,

Subject (listing for 'write data in to a file')
Author Date Posted
write data in to a file Song Chen 09/19/07 4:17pm
Re: write data in to a file S. Saralamba 09/20/07 03:43am
Next Comment >Help | Reply To Topic