David and <span class="lHQn1d"><img class="KaaYad QgQaBc" src="images/cleardot.gif"></span><span class="JDpiNd"></span>Keith: Thanks you for your reply.<br><br>I will see and try to use RIO. However, what I need to do is very simple. I have already add log to SqueakDBX. Till now, the log just print in Transcript. The problem is that sometimes I get a segmentation fault and I cannot see transcript any more haha. So, I would like to be able to log into a log file.<br>
<br>If I think I could give some useful feedback be sure I will let you know.<br><br>cheers,<br><br>Mariano<br><br><br><div class="gmail_quote">On Mon, Nov 24, 2008 at 4:53 PM, Keith Hodges <span dir="ltr">&lt;<a href="mailto:keith_hodges@yahoo.co.uk">keith_hodges@yahoo.co.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">Mariano Martinez Peck wrote:<br>
&gt; Hi list!<br>
&gt;<br>
&gt; I need to do some things with files (text and binaries), and I would<br>
&gt; need information about creating, deleting, adding, appending, writting<br>
&gt; and so on with them. I look in SBE but I didn&#39;t find a chapter about that.<br>
&gt;<br>
&gt; Is somewhere documentation about this?<br>
&gt;<br>
&gt; thanks,<br>
&gt;<br>
&gt; Mariano<br>
</div></div>The built in File handling is not very elegent, enter, &quot;Rio&quot; File/Drectory<br>
<br>
Installer squeaksource project: &#39;Rio&#39;; install: &#39;File-Kernel&#39;; install:<br>
&#39;File-Base&#39;.<br>
<br>
(and File-Tests for examples)<br>
<br>
see also <a href="http://wiki.squeak.org/squeak/5929" target="_blank">http://wiki.squeak.org/squeak/5929</a><br>
<br>
if you like it, then perhaps you would be kind enough to offer some feedback<br>
<br>
best regards<br>
<br>
Keith<br>
<br>
=========<br>
Class comment from File reads:<br>
<br>
Features of File/Directory (née Rio)<br>
<br>
File/Directory was inspired by ruby&#39;s rio which enables local and remote<br>
files to be used transparently. To achieve this a generic stream copy<br>
function has been developed (aStream copyTo: bStream) and we are able to<br>
expose the working stream of FtpClient so you can stream directly to a<br>
remote file. We also support file archives (zip) as if they were a<br>
filesystem, and transparent streaming to compressed files (gzip).<br>
[transparent streaming to a remote compressed file is still available as<br>
a exercise for the reader to implement ;) ]<br>
<br>
File/Directory is a standalone package, it does not use any of the<br>
existing FileDirectory classes. It is separated into File-Kernel and<br>
File-Base, where the former provides a minimal working subset for<br>
KernelImages to access local filesystems.<br>
<br>
Local file copying is handled by the fileCopyPlugin if it is present, if<br>
not OSProcess &#39;cp&#39; is used, and as a last resort a full stream to stream<br>
copyTo: is performed (but this does update modification time).<br>
<br>
Remote file upload or download is handled by OSProcess &#39;ftp&#39; if it is<br>
present. Multiple file transfers are invoked N at a time (where N is<br>
initially 5). Copying from a remote file to another remote file is<br>
handled by the internal stream copy function.<br>
<br>
<br>
</blockquote></div><br>