Pete -- ...and then pete M said... % % I'm doing a bit of data recovery using php as the scripting language..
How interesting. That's certainly a new twist. % % Is there a way to determine is a file is binary or text ? % all the files are recovered but the file names do not have extensions ! You could use file(1) to check. It looks at the first few bytes of a file and compares them against a table (usually in /etc/magic). % % eg chkdsk.exe would be dgfhgj5767363874 as a file name Of course, this implies that you're on a Windows box, which means getting your hands on file() would require a bit more work (but should go well with cygwin). % % pete HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
pgp00000.pgp
Description: PGP signature