in reply to Re: File Test operators, option -T
in thread File Test operators, option -T
No, I think you're wrong. You DO want to test the file handle.
With your code all you're testing is a variable value. Just because you put the name of a file in a variable doesn't make it a file - it's still just a variable.
Actually, I've tested the poster's original code, testing with both binary and text files, and it works perfectly for me, on both Linux and Windows, so I'm not quite sure how he's even getting an error.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: File Test operators, option -T
by hdb (Monsignor) on Sep 10, 2013 at 13:44 UTC | |
|
Re^3: File Test operators, option -T
by Random_Walk (Prior) on Sep 10, 2013 at 14:16 UTC |