Re: Re: Read a binary file

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Tue, 30 Sep 2008 08:10:07 +0200


Not sure to understand what you mean. I gave you the recipe to open a binary file for reading.
Of course, you must know how this file had been written with its internal data structures.

Rene Brun

Manungu Kiveni wrote:
> Hi Rene,
>
> This is certainly going to work, but if the binary header is saved with a
> specific format and has a header. Is the same ifstream myFile
> ("myfile.dat", ios::in | ios::binary) instruction going to work as well? I
> am getting into trouble so far. Help please.
>
> Joseph
>
>
>> ifstream myFile ("myfile.dat", ios::in | ios::binary);
>>
>>
>> Rene Brun
>>
>> Manungu kiveni wrote:
>>
>>> Hi Rene,
>>>
>>> I wanted to know how do you read a binary file in root. Binary format
>>> is a bit peculiar and if you use the same if stream and of stream as
>>> for the other format, nothing works. Any suggestions?
>>>
>>> Thank you.
>>> Joseph
>>>
>>>
>>>
>
>
Received on Tue Sep 30 2008 - 08:10:26 CEST

This archive was generated by hypermail 2.2.0 : Tue Sep 30 2008 - 17:50:02 CEST