Thanks for the info. When the time comes I'll make the necessary changes.
-----------------------------------------------------------------------------
# WRITE DATA TO FILE HANDLER 2010-11-03 : 19:02
-----------------------------------------------------------------------------
on Write_To_File(someData, targetFile, startingAtPosition, dataType)
try
set resultNumber to open for access targetFile with write permission
if startingAtPosition = 0 then
set eof of resultNumber to 0
else if startingAtPosition = "EOF" then
set startingAtPosition to get eof of resultNumber
end if
write someData to resultNumber ¬
as dataType ¬
starting at startingAtPosition
close access resultNumber
on error errMsg number errNum
try
close access resultNumber
end try
display dialog "Error: " & errMsg & return & "Error Number: " & errNum
end try
end Write_To_File
--
Best Regards,
Chris