On Monday August 20, 2007, "David Weintraub" <[EMAIL PROTECTED]>
wrote:
> I would use a Perl script to read the first 8000 or so bytes of a
> file and look for characters outside of what you'd expect to be
> ASCII range.
Using Perl, the -T (for text) and -B (for binary) flags do pretty much
exac
Hi,
-Original Message-
From: Ditrick, Gregory [mailto:[EMAIL PROTECTED]
Sent: Monday, August 20, 2007 9:01 PM
To: Ant Users List
Subject: Testing a file if it is binary or not.
/*
Does anyone have any ideas other than using the files extension as a
guide
and praying that you have them
I certainly wouldn't do this in Ant!
I would use a Perl script to read the first 8000 or so bytes of a file
and look for characters outside of what you'd expect to be ASCII
range.
Probably do a "cvs import" first, then go back through and see if
there are any files that were added that were binar
This may not be for this forum, but I'm moving a PVCS repository to a
CVS repository. I'm using ant to do this with cvs and pvcs tasks. I
have to test a if a file is binary or not before adding it to CVS, but I
have to do this on a Windows box. It is easy on Unix (file |
grep...) or using or .