The help system indicates that TextFileOpen "retuns the value 0 if an error occurs when opening or creating the text file".
When I run the following with DiaDem 2010SP1 on Vista64, I get value of -1 ...
MsgBox TextFileIOpen("This File Does Not Exist.csv",tfRead)
This means that any error checking using that function might not work as intended.