news
About Elegant Chaos
info
About me and my friends
people
Software from Elegant Chaos
software
Other stuff...
stuff

FL_ReadPrefs

Revision 4
Revised on 19/03/95 18:03

Description

Read a preferences file. Takes the name of the preferences file to read.

This routine looks uses FL_FindPrefs to find the preferences file for it.


Code

function FL_ReadPrefs name
  -- look for file in ULTRALAB folder
  put FL_FindPrefs(name) into path
  
  -- try to read & return contents of file
  open file path
  if the result is empty then
    read from file path until eof
    close file path
    return it
  end if
end FL_ReadPrefs