Yes I use that method all of the time. My question was more to the fact of ...

Code:

Function OpenFile()
Open (1,"c:\config.sys",5)
EndFunction

Function Write2File($Handle)
Writeline(1, "This is a test")
EndFunction



Where a better way probably would be....
Code:

$FH = FreeFileHandle()

Function OpenFile($FH)
Open ($FH,"C:\Config.sys",5)
EndFunction

Function Write2File ($FH)
Writeline ($FH,"Nobody uses this file anymore")
EndFunction

_________________________
Today is the tomorrow you worried about yesterday.