将制表符分隔的.TXT文件读取到数据表所需的代码. [英] REQUIRED CODE TO READ A TAB DELIMITED .TXT FILE TO DATATABLE.

查看:35
本文介绍了将制表符分隔的.TXT文件读取到数据表所需的代码.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个制表符分隔的文本文件,看起来像这样.

姓名年龄性别区分
avinash 21 male bang
rahul 22公浦那
divya 22 female chennai

它是一个制表符分隔的文件,我想使用C#将这个.txt文件读入asp.net数据表中,any1可以帮助我并向我提供代码吗?

在此先感谢.

Hi all,

I have a tab delimited text file which looks something like this.

Name age sex ditrict
avinash 21 male bang
rahul 22 male pune
divya 22 female chennai

its a TAB delimited file, i want to read this .txt file in to asp.net datatable using c# can any1 please help me and provide me with the code?

Thanks in Advance.

推荐答案

选中此
从定界文本文件填充数据集 [
check this
Fill a DataSet from delimited text files[^]


在以下URL检查代码段:

http://forums.asp.net/t/1163867.aspx/1 [ ^ ]

另一个例子:
从定界文本文件填充数据集 [
Check the code snippet at the following URL:

http://forums.asp.net/t/1163867.aspx/1[^]

Another example:
Fill a DataSet from delimited text files[^]


这篇关于将制表符分隔的.TXT文件读取到数据表所需的代码.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆