Is there a way to tell if a file is opened I/O, Input or Output?

Is there any way I can tell what type of open was used to access a file? ie: was it opened input/output or i-o.

Thanks