Hi,

I would like to discover ruby and to do so I would like to do the 
following thing :

I have a text file with some COM defines declared like this :

#define PR_ORIGINAL_ENTRYID                         PROP_TAG( PT_BINARY, 
    0x3A12)
#define PR_ORIGINAL_DISPLAY_NAME                    PROP_TAG( 
PT_TSTRING,   0x3A13)



And I would like to open this file and create a C array with these 
properties

typedef struct mapiProp_s
{
	ULONG ulPropId;
	ULONG ulPropType;
}mapiProp_t;

mapiProp_t mapiPropArray[] =
{
{ PR_ORIGINAL_ENTRYID, "PR_ORIGINAL_ENTRYID", PT_BINARY },
{ PR_ORIGINAL_DISPLAY_NAME, "PR_ORIGINAL_DISPLAY_NAME", PT_TSTRING },	
};


So basically I need to open a file, check if it starts by #define PR_ 
and then extract data.
If someone could help me to start...


Thanks