Re: check whether file is ascii or ebcdic

2004-01-14 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Nntp.Perl.Org) writes: >Hi > >How do I check whether a file is in ebcdic or ascii format ? It rather depends on what you mean by 'ASCII'. If you were referring to strict ASCII, the 8th bit would be clear and so, assuming you are talking about te

Re: check whether file is ascii or ebcdic

2004-01-14 Thread nntp.perl.org
> > Hi > > > > How do I check whether a file is in ebcdic or ascii format ? > > > > Thanks, > > Nitish > > > > > perldoc -f -x > > That tells me how to find if a file is ascii text > > if(-T $file) { >print "$file is an ascii text file \n"; > } else { > print "Not an ascii text file \n"; >

Re: check whether file is ascii or ebcdic

2004-01-14 Thread nntp.perl.org
> > > > How do I check whether a file is in ebcdic or ascii format ? > > > > Thanks, > > Nitish > > > > > perldoc -f -x > > That tells me how to find if a file is ascii text > > if(-T $file) { >print "$file is an ascii text file \n"; > } else { > print "Not an ascii text file \n"; > } is t

Re: check whether file is ascii or ebcdic

2004-01-14 Thread Ramprasad A Padmanabhan
Nntp.Perl.Org wrote: Hi How do I check whether a file is in ebcdic or ascii format ? Thanks, Nitish perldoc -f -x That tells me how to find if a file is ascii text if(-T $file) { print "$file is an ascii text file \n"; } else { print "Not an ascii text file \n"; } -- To unsubscribe, e-m

check whether file is ascii or ebcdic

2004-01-14 Thread nntp.perl.org
Hi How do I check whether a file is in ebcdic or ascii format ? Thanks, Nitish -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]