For how to extract data from a (Configuration/ .ini)file. Please do consider Create the file using Configuration File VIs, which will then allow you to extract data easily.
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000002D6F0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
Also, Jean-Pierre Drolet has got something just what you are looking for.
Regards
ian.f