On May 3, 2007, at 2:01 PM, Sven E Olsson wrote:
>
> if I have a code like this:
>
> f = GetFolderitem("myfile.txt")
> WriteToFile = f.CreateAsTextFile <<<<---------------- is the file
> locked now for other apps (in use by my self)?
Maybe, maybe not. Assuming that you're talking about Mac OS X, it
depends on how RS has implemented this method.
>
> if WriteToFile <> nil then
> WriteToFile.WriteLine("Hello")
> WriteToFile.close <<<<---------------------- is the file unlocked now
Don't use Close. Set the TextOutputStream object to nil. There are
all sorts of reasons why this is the way that you should do it.
Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>