The problem I see is, if I use a FmOpenWrite, did it fail because it does not exist, did it fail because its currently opened elsewhere and locked and so on.
Others like, seeking past the end of file or failed to write.
I like using the TFileStream because it works well for most things, but when it fails via an exception, there is no direct method I can use that is universal that tells me why while inside an Except, at least not that I have seen in the help file, yet!
The Pascal IO has the IOresults which gives you lots of info when something fails.
Using the system's IO results would be directed to the target and not a cross platform meaning.
maybe I missed something, but I find at times I have to revert to pascal IO to get what's needed but, in my case, I am passing around IO handlers between functions and using streams works perfectly for that.
What would be nice is an overloaded TFileStream that can populate a IOResults in the Create.
TFileStream.Create('FileName', Mode, Out IoResult=0);