views:

47

answers:

0

Hello, I am trying to find an efficient way to read through a report file generated by a machine where I work.

I was reading this page about using the Windows API to read and write .ini files from VBA.

I was hoping to use a similar approach on a different type of file, but I don't really know what this file is. It is a text report file that stores data somewhat like an .ini file, but it has a heirarchical structure. The extensions of two examples are .rpt and .asr.

The structure looks something like this:

[SAMPLE]
{
Value1    10
Value2    etc. 
[COMPONENT]
{
CVal1     11
CVal2     etc.
}
[COMPONENT]
{
CVal1     12
CVal2     etc.
}
}

The spaces are tabs.

What kind of a formatting convention is this? Is it common, and is there a way to read it more efficiently than standard VBA file handling?