<div dir="ltr">Writing to a file is very similar to writing to the transcript.  You need to open a writestream on the file, then you write to it.  <div><br></div><div>If I were writing the data out, I&#39;d probably try to write it out as a CSV (comma separated values) so that I could read it into a spreadsheet.</div><div><br></div><div>If you want to make it easy for people who don&#39;t like computers, perhaps you should make a GUI for it.  The GUI might list all the drawings in the top pane.  When you select a drawing, you get to see its contents in the bottom pane.</div><div><br></div><div>I assume that when you run drawn2012 it returns some kind of data structure that gives you the drawing for 2012?</div><div><br></div><div>My son had something like this.  He had his program send each person email, telling them who they drew.  If you wanted to do this, you could focus on how to send email instead of on how to make a GUI.</div><div><br></div><div>I&#39;m not sure what your motivation is here.  Is your main aim to learn a little Smalltalk?  To make a useful tool for yourself?  To make a useful tool for someone else?  These are all worthy goals.  My advice would depend on your goal.  And of course, goals change.  You might have started out just wanting to learn Smalltalk but now you just want to make a tool that someone else can use so you don&#39;t have to be in charge any more.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 2, 2015 at 8:07 AM, Dan Norton <span dir="ltr">&lt;<a href="mailto:dnorton@mindspring.com" target="_blank">dnorton@mindspring.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dumb questions can have uses after all. Thank you Hannes and Ralph for your thoughtful<br>
responses. You must have been digging into the archives - my original post was nearly a<br>
year ago.<br>
<br>
Perhaps it is time to say what I chose to do. Design of Secret Santa was driven by:<br>
   1. A desire for simplicity<br>
   2. Relatively infrequent use (annual)<br>
<br>
Input is a text file listing the names of participants. A pair of names on the same line denotes<br>
a couple. Output consists of the result of drawing names, compiled as a class method.<br>
Method names are serialized: drawn2012, drawn2013, ...<br>
<br>
The Transcript shows the latest drawing, as a Dictionary, which is compiled. Below that in the<br>
Transcript are the statistics (iterations, rule violations). The image must be saved.<br>
<br>
I would appreciate any thoughts on application delivery. The above is a very crude, if not<br>
non-existent, way to deliver an app. Use of external files for output would improve things a<br>
little. Isn&#39;t it possible to do better than this for a Smalltalk app? What if the user is not a fan of<br>
computers?<br>
<div class="HOEnZb"><div class="h5"><br>
 - Dan<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
</div></div></blockquote></div><br></div>