How to find whether a step file is Part or Assembly

Hi, I am Newbie to Customization of SolidWorks.

    Can anyone help me how to find a given file is Part or Assembly File without opening. I tried reading the File by opening it in the WordPad, It seems everything is same, i didn't find anything different so that i can tell that this *.Step is an Assembly file or as a Part File ?

My actual requirement is to convert a *.Step file into SolidWorks 3D Document (*.SLDPRT or *.SLDASM). So i opened the *.Step file with SolidWorks then i used the Command

                // C# coding

                swModel = (ModelDoc2) SwApp.ActiveDoc;

                swModel.saveas(FileName);

but here i need to given the File extension as (*.SLDPRT or *.SLDASM) which i don't know . I thought of just using

        

             swModel.save();

But problem here is save(); will save's the file where the source (*.step) file exists, but i want to save the file in someother location.

Thanks in Advance,

Regards

Venkata Ramesh V

SolidworksApi macros