473,732 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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>fwW46fdKhEu Ge5sPqHyUtg==</Id>
Nov 20 '05 #1
4 2494
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*******@dotn et247.com> wrote in message
news:um******** ******@tk2msftn gp13.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>fwW46fdKhEu Ge5sPqHyUtg==</Id>
Nov 20 '05 #3
Hi,

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

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

"Neil Sutton via .NET 247" <an*******@dotn et247.com> wrote in message
news:um******** ******@tk2msftn gp13.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>fwW46fdKhEu Ge5sPqHyUtg==</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*******@dotn et247.com> wrote in message
news:um******** ******@tk2msftn gp13.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>fwW46fdKhEu Ge5sPqHyUtg==</Id>
Nov 20 '05 #5

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

Similar topics

6
2667
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 the object and set default blank/null values), and then does all the Db access and number crunching to populate the new object. The factory returns the fully populated object to the caller. All the fields in the object are private, but have...
5
2259
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 and then read: string1, integer1, double1
8
23905
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
5114
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 Partition we are using ReadFile , WriteFile and setFilePointerEx to read and write the sectors and we are reading/writing 102400 sectors together, even we have reduced the sectors still it is not able to read or write, our program is working fine...
1
3560
by: yusufjammy | last post by:
How to make write protected cd's and dvd's
0
8774
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9307
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9235
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9181
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8186
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.