While this is actually an interesting question, and I appreciate very much salva's answer, I would say that it's not something that would pop up frequently. Indeed in many years I've never felt the need to find out the open mode of a filehandle: generally you're the person who opens it in the first place and thus you do know how to deal with it. Since you claim to be a newbie, I'd be curious as to know what you need this for. After all this may be an XY Problem...
In reply to Re: How do i determine which mode the file has open ? (write or append mode)
by blazar
in thread How do i determine which mode the file has open ? (write or append mode)
by loga
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |