Go to your Online help and read the chapter about File I/O.
Which file format you choose depends which tools you will use later to analyze the data. If you plan to use LV or DIADem then the .tdm file format will give you the best information. If you plan to use other tools than the .lvm format will give you the best chance to create a import filter.
Also use the Example Finder and go to Fundamentals>>File I/O on how to use the various functions.
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions