I was pretty sure that the file_open() methods would return integer handles
No, it returns regular var numbers (such as 12543.731), as described in the manual. Never assume something about a function that you don't really know, esp. when the manual tells you different.
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual