[Q] Matrix and Files
Ken Collins
kenncoll123 at hotmail.com
Wed Dec 18 04:55:49 UTC 2002
Hi everyone,
First, I want to say thanks for the help I have gotten from this list.
Second, I will likely be asking a lot of questions in the near future - and
although I suppose this is the THE place to ask Squeak questions, I
sometimes feel awkward doing so... maybe like there is some limit to how
many you can ask or something... maybe it's just the weather :)
Anyway - if I have made a Matrix in a Workspace with the following
rows/columns:
0 3 2 1 6 5 4 9 8 7 e t
9 0 e t 3 2 1 6 5 4 8 7
t 1 0 e 4 3 2 7 6 5 9 8
e 2 1 0 5 4 3 8 7 6 t 9
6 9 8 7 0 e t 3 2 1 5 4
7 t 9 8 1 0 e 4 3 2 6 5
8 e t 9 2 1 0 5 4 3 7 6
3 6 5 4 9 8 7 0 e t 2 1
4 7 6 5 t 9 8 1 0 e 3 2
5 8 7 6 e t 9 2 1 0 4 3
1 4 3 2 7 6 5 t 9 8 0 e
2 5 4 3 8 7 6 e t 9 1 0
how do I put it out into a text file that will look exactly like this when I
open it (with notepad or word)? Something/somewhere like:
'C:\WINDOWS\Desktop\GoodSqueak\TheWellBehavedMatrix.txt'. I want the file to
have a space between each row element, and 1 row per line.
I feel like I am running in circles misusing FileDirectory,
DosFileDirectory, FileStream, StandardFileStream, and others in all variety
of ways :)
Thanx for any pointers,
Ken
Win98SE
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
More information about the Squeak-dev
mailing list
|