473,396 Members | 1,917 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.

How can I Read/Write CSV using .NET CF ??

Hi,

I am new to Visual Basic .Net (some experience with VB6) and I amtrying to write my first application for my PocketPC (WM2003) Ineed to be able to create/store/recall records like a database..but from some reading on a few websites it looks verycomplicated to do this with a .cdb file. From what I can see theeasiest way to do it is with a CSV file becuase then I canimport the CSV into excel on a desktop PC. I have no idea whereto start with opening/saving a CSV using the CF so that it willwork on my Pocket Pc. Could anyone post some sample code to helpme get started ??

Many Thanks

--------------------------------
From: Neil Sutton

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>fwW46fdKhEuGe5sPqHyUtg==</Id>
Nov 20 '05 #1
4 2475
Hi Neil,

Did you already look what the XML dataset can do for you.
Probably that will be much easier.

Cor
Nov 20 '05 #2
Here's some advice.

1.) Go and buy a book on ADO.NET
2.) Make a nice pot of coffee, sit at your PC and workthrough it.

. . . Three weeks later

3.) Join the ADONET newsgroup and start trying to give advice

In the meantime . . . .

DataBase storage and retreival in .NET is done using ADO.NET , which is
really just a set of closely related classed in the .NET framwork. This
allows you to connect to several database types.

ADO.NET is 'disconnected', in other words you request data, work on it, then
send it back. Probably different to what you are used to. In basic terms
this equates to a Connection Object Responsible for the actuall communicatin
to the database, the DataSet, which is where we store and work on our Data,
and in between these sits what's know as a DataAdapter. This manages the
communication between the Connection Object and the DataSet ( Data Store ).

It sounds daunting, but its not that bad really, only you get to grips with
it its quite simple in the main, although certain things can be tricky.

HTH - OHM ( Terry Burns )





"Neil Sutton via .NET 247" <an*******@dotnet247.com> wrote in message
news:um**************@tk2msftngp13.phx.gbl...
Hi,

I am new to Visual Basic .Net (some experience with VB6) and I am trying to
write my first application for my PocketPC (WM2003) I need to be able to
create/store/recall records like a database.. but from some reading on a few
websites it looks very complicated to do this with a .cdb file. From what I
can see the easiest way to do it is with a CSV file becuase then I can
import the CSV into excel on a desktop PC. I have no idea where to start
with opening/saving a CSV using the CF so that it will work on my Pocket Pc.
Could anyone post some sample code to help me get started ??

Many Thanks

--------------------------------
From: Neil Sutton

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>fwW46fdKhEuGe5sPqHyUtg==</Id>
Nov 20 '05 #3
Hi,

http://www.onteorasoftware.com/downloads/csvtest.zip

Ken
-----------------

"Neil Sutton via .NET 247" <an*******@dotnet247.com> wrote in message
news:um**************@tk2msftngp13.phx.gbl:
Hi,

I am new to Visual Basic .Net (some experience with VB6) and I am trying
to write my first application for my PocketPC (WM2003) I need to be able to
create/store/recall records like a database.. but from some reading on a few
websites it looks very complicated to do this with a .cdb file. From what I
can see the easiest way to do it is with a CSV file becuase then I can
import the CSV into excel on a desktop PC. I have no idea where to start
with opening/saving a CSV using the CF so that it will work on my Pocket Pc.
Could anyone post some sample code to help me get started ??

Many Thanks

--------------------------------
From: Neil Sutton

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>fwW46fdKhEuGe5sPqHyUtg==</Id>


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.0 - Release Date: 6/12/2004
Nov 20 '05 #4
Download the PocketPC Compact Framework SDK v1.1 from Microsoft.com.

Plenty of examples and details in there, all CF specific.
_______________________________________
The Grim Reaper

"Neil Sutton via .NET 247" <an*******@dotnet247.com> wrote in message
news:um**************@tk2msftngp13.phx.gbl...
Hi,

I am new to Visual Basic .Net (some experience with VB6) and I am trying to
write my first application for my PocketPC (WM2003) I need to be able to
create/store/recall records like a database.. but from some reading on a few
websites it looks very complicated to do this with a .cdb file. From what I
can see the easiest way to do it is with a CSV file becuase then I can
import the CSV into excel on a desktop PC. I have no idea where to start
with opening/saving a CSV using the CF so that it will work on my Pocket Pc.
Could anyone post some sample code to help me get started ??

Many Thanks

--------------------------------
From: Neil Sutton

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>fwW46fdKhEuGe5sPqHyUtg==</Id>
Nov 20 '05 #5

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

Similar topics

6
by: BBM | last post by:
I have an object that has a fairly complex construction sequence, so I have written a dedicated "factory" class that invokes the constructor of my object class (which does nothing but instantiate...
5
by: Just Me | last post by:
Using streams how do I write and then read a set of variables? For example, suppose I want to write into a text file: string1,string2,string3 Then read them later. Suppose I want to write...
8
by: a | last post by:
I have a struct to write to a file struct _structA{ long x; int y; float z; } struct _structA A; //file open write(fd,A,sizeof(_structA)); //file close
5
by: Sumana | last post by:
Hi All, We developed our project on VC++.Net console application to create image of disk and to write the image We are having problem with reading and writing the sector beyond 6GB Disk or...
1
by: yusufjammy | last post by:
How to make write protected cd's and dvd's
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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.