从vb.net从app.path读取多个txt文件的代码 [英] code to read multiple txt files from app.path from vb.net
本文介绍了从vb.net从app.path读取多个txt文件的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我该如何从一个文件夹中读取一个升华的文件,并将所有这些升华的字段存储到mysqlserver中.请帮助.
how can i read delimated files from a folder one by one and store all these delimated fields into mysqlserver. plz help . thnx in advance to all the expert.
推荐答案
您需要将此问题分解为各个部分,并研究MSDN的相关部分.
1.从磁盘读取文本文件- StreamReader [ String.Split [ ADO.Net [
You need to break this problem down into it''s various parts, and study the relevant sections on MSDN.
1. Read text files from Disk - StreamReader[^].
2. Split the delimited files using String.Split[^].
3. Use ADO.Net[^] to update database.
Hope this helps.
这篇关于从vb.net从app.path读取多个txt文件的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文