I use biterscripting to process CSV files a lot. There is a good sample script posted at http://www.biterscripting.com/SS_CSV.html . You can automate a lot of table processing using this approach, whether the tables come from a web page or are in local files. All their scripts are open source...