473,396 Members | 1,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Question abour reading file

Hi

Here's my question, I have to read a CSV file and import data in
DataSet. How I can do this in VB.NET ?

Is it possible to have import method to import file directly in
dataset ?

Thanks
Jul 21 '05 #1
2 1903
Eric:

This should help, but the short answer is Yes, you can do it.

http://authors.aspalliance.com/ericm...les/textdb.asp

HTH,

Bill
"Eric Caron" <ec****@pgsystem.com> wrote in message
news:rm********************************@4ax.com...
Hi

Here's my question, I have to read a CSV file and import data in
DataSet. How I can do this in VB.NET ?

Is it possible to have import method to import file directly in
dataset ?

Thanks

Jul 21 '05 #2
A dataset can slurp in an XML file. If the file is properly formatted.

Also, There are utils and code samples roaming the net that can convert CSV
to XML.

Might be easier to just use a StreamReader to read the CSV file and do your
own population of the DataSet. Probably 35-40 lines of code.

-Dino
"Eric Caron" <ec****@pgsystem.com> wrote in message
news:rm********************************@4ax.com...
Hi

Here's my question, I have to read a CSV file and import data in
DataSet. How I can do this in VB.NET ?

Is it possible to have import method to import file directly in
dataset ?

Thanks

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Brian Ward | last post by:
First: sorry as a relative newbie for previously not including code. My question: Reading C++ books I almost always find programs such as the one below give the following type of code for reading...
7
by: dan | last post by:
hey peeps, i am completely new at c++ and i need some help with an assignment. it is basically about file i/o with fstreams. i understand how to open a file with fstream, but how would you read,...
5
by: syntax | last post by:
hi here is my test code include<stdio.h> #include<stdlib.h> int main() {
2
by: Eric Caron | last post by:
Hi Here's my question, I have to read a CSV file and import data in DataSet. How I can do this in VB.NET ? Is it possible to have import method to import file directly in dataset ? Thanks
53
by: Jeff | last post by:
In the function below, can size ever be 0 (zero)? char *clc_strdup(const char * CLC_RESTRICT s) { size_t size; char *p; clc_assert_not_null(clc_strdup, s); size = strlen(s) + 1;
2
by: archana | last post by:
Hi all, I am new to asp.net (learning phase). I have to develop application in asp.net to read file from client pc and display statistics of that file to client. So my question is that to...
42
by: mellyshum123 | last post by:
I need to read in a comma separated file, and for this I was going to use fgets. I was reading about it at http://www.cplusplus.com/ref/ and I noticed that the document said: "Reads characters...
25
by: Thomas R. Hummel | last post by:
I'm going to try to describe this situation as best as I can, but if anything is unclear please let me know. Some of this database was already in place before I arrived on the scene, and I don't...
5
by: Bill H | last post by:
I am reading the docs on fopen() and think I want to use the r+ option so I can read in a file, make changes to the data, write the changes back, overwriting the original data. I believe using...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.