On 05/23/2011 10:16 AM, Axel Naumann wrote:
> Hi,
Hi!
> even though I don't see how this is related to ROOT: you could check
err.. sorry.. how can i identify the file type __IN_ROOT__ ?
> whether the file starts with "<?xml". XML files don't *have* to, but
> they should, and most do.
the purpose it to feed a proper argument to a function that creates a
TChain.
Thanks,
Adrian
>
> Cheers, Axel.
>
> On 5/22/11 12:52 PM, Adrian Sevcenco wrote:
>> Hi! Is there a way to identify the file type other than using a bash
>> command like:
>> file -b $file | awk '{print $1}'
>>
>> I want to distinguish between XML and ASCII file types.
>> Thank you,
>> Adrian
>>
>> ----------------------------------------------
>> Adrian Sevcenco |
>> Institute of Space Sciences - ISS, Romania |
>> adrian.sevcenco at {cern.ch,spacescience.ro} |
>> ----------------------------------------------
>>
--
----------------------------------------------
Adrian Sevcenco |
Institute of Space Sciences - ISS, Romania |
adrian.sevcenco at {cern.ch,spacescience.ro} |
----------------------------------------------
- application/pkcs7-signature attachment: S/MIME Cryptographic Signature
Received on Mon May 23 2011 - 12:05:45 CEST
This archive was generated by hypermail 2.2.0 : Mon May 23 2011 - 17:50:01 CEST