On 25-Jan-06, at 2:22 PM, Brian Heibert wrote:
I am trying to read my preference file
dim file as folderitem
dim t as textinputstream
file = PreferencesFolder.child("SpiderWeb 2006 Preferences")
if file<> nil then
t=file.OpenAsTextFile
preferences.homepage.text = t.readline
preferences.welcome.text = t.readline
t.close
end if
I am getting a NilObjectException on:
preferences.homepage.text = t.readline
preferences.welcome.text = t.readline
This usually means that the folderitem you are attempting to open
does not exist.
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>