in reply to Re: Testing whether a file handle is attached to STDOUT
in thread Testing whether a file handle is attached to STDOUT
But is *that* portable? It would certainly work on Unix, but how about the Windows family? In particular, Windows 2000, NT and 7 - can we rely on fileno(*STDOUT) always being 1?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Testing whether a file handle is attached to STDOUT
by Corion (Patriarch) on Jun 16, 2011 at 10:55 UTC | |
|
Re^3: Testing whether a file handle is attached to STDOUT
by BrowserUk (Patriarch) on Jun 16, 2011 at 10:56 UTC |