It's almost that easy...the preferred method is to bind the data to a dataset...
Here's an example. It's for a web page, but can be adapted for an application (the html code would be changed to your application code).
Essentially, the procedure is to open the file, grab the data, put it into an object, and access the object properties.