S
stephen O'D
Guys,
In Perl I can test if a file is a text file using the -T operator. Is
there a way to do the same thing in Ruby?
I know that File.file? tests for a plain file. I also came across
test('f', 'filename') which does the same thing, but doesn't accept T
as a parameter.
Any pointers are greatly appreciated!
Thanks,
Stephen.
In Perl I can test if a file is a text file using the -T operator. Is
there a way to do the same thing in Ruby?
I know that File.file? tests for a plain file. I also came across
test('f', 'filename') which does the same thing, but doesn't accept T
as a parameter.
Any pointers are greatly appreciated!
Thanks,
Stephen.