gettingstarted
[Top] [All Lists]

Re: Saving data to an external file

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Saving data to an external file
From: Terry Ford <tmford at shaw dot ca>
Date: Sun, 30 Jul 2006 20:33:54 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <20060731030118 dot 62377 dot qmail at web60411 dot mail dot yahoo dot com>

On Jul 30, 2006, at 8:01 PM, Lennox Jacob wrote:

Hi Terry,
I have it working on one computer (If f.exists) which I use for programming and my private files and is not (never) connected to the Internet. I then typed it in on the other computer (which has none of my project files or any of my private files) and is connected to the Internet so that I can "speak/chat/correspond" on the Internet, it was typed as "If f exists" the first time, but then I did not type it again, I copied and pasted it so it was copied and pasted with the same error.

I was just teasing you. :)

You wouldn't have been able to compile it without the correct syntax.

One thing that caught my attention throughout the thread was the reference to tOS=Nil as opposed to tOS.Close as I learned before. According to RS, the stream and the reference to it should automatically disappear at the end of the method if it was declared in the method and tOS.Close is not required. I could see the reference not disappearing if tOS were a property however.

What I have discovered is that, if you wish to write to and then read
from the same folderitem in the same method, making the reference nil
will actually close the write for the next read.

Terry

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>