 |
|
|
|
| Author |
Message |
wktsang1
Joined: 07 Nov 2007 Posts: 7
|
Posted: Wed Feb 20, 2008 4:47 am Post subject: Newbie Question for File Handling |
|
|
I would like to write an application with C# in a Windows CE 5.0 device, but
I don't know how to read/write data from/to a ASCII file in the device, and
how to copy such file to a PC when it is connected USB cable.
Would anyone provide some sample codes for reference?
Thank in advance.
Archived from group: microsoft>public>pocketpc>developer |
|
| Back to top |
|
 |
Peter Foot
Joined: 01 Sep 2007 Posts: 56
|
Posted: Wed Feb 20, 2008 12:58 pm Post subject: Re: Newbie Question for File Handling |
|
|
There is a How To here for reading text files:-
http://msdn2.microsoft.com/en-us/library/db5x7c0d.aspx
Regarding copying it to the desktop there isn't a direct way of doing this,
you have a couple of options:-
If the operation is to be done from the desktop side you would use RAPI -
OpenNETCF.Desktop.Communication provides a .NET wrapper for this
From the device side you could use a Web Service, FTP, HTTP or a custom
Sockets implementation to send the file.
Peter
--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility
"wktsang1" wrote in message @microsoft.com...
>I would like to write an application with C# in a Windows CE 5.0 device,
>but
> I don't know how to read/write data from/to a ASCII file in the device,
> and
> how to copy such file to a PC when it is connected USB cable.
>
> Would anyone provide some sample codes for reference?
>
> Thank in advance. |
|
| Back to top |
|
 |
wktsang1
Joined: 07 Nov 2007 Posts: 7
|
Posted: Wed Feb 20, 2008 8:34 am Post subject: Re: Newbie Question for File Handling |
|
|
Thank Peter, the first 2 issues are solved.
For the last issue, indeed I want to do the process in Device side and do it
when the
Device connected to the Desktop via the USB cable. And I do not want to
configure the Desktop as a Web/FTP Server, any other method I can apply to
achieve the goal?
Thomas
"Peter Foot" wrote:
> There is a How To here for reading text files:-
> http://msdn2.microsoft.com/en-us/library/db5x7c0d.aspx
>
> Regarding copying it to the desktop there isn't a direct way of doing this,
> you have a couple of options:-
> If the operation is to be done from the desktop side you would use RAPI -
> OpenNETCF.Desktop.Communication provides a .NET wrapper for this
> From the device side you could use a Web Service, FTP, HTTP or a custom
> Sockets implementation to send the file.
>
> Peter
>
> --
> Peter Foot
> Microsoft Device Application Development MVP
> www.peterfoot.net | www.inthehand.com
> In The Hand Ltd - .NET Solutions for Mobility
>
> "wktsang1" wrote in message
> @microsoft.com...
> >I would like to write an application with C# in a Windows CE 5.0 device,
> >but
> > I don't know how to read/write data from/to a ASCII file in the device,
> > and
> > how to copy such file to a PC when it is connected USB cable.
> >
> > Would anyone provide some sample codes for reference?
> >
> > Thank in advance.
> |
|
| Back to top |
|
 |
r_z_aret
Joined: 15 Aug 2007 Posts: 2774
|
Posted: Wed Feb 20, 2008 8:25 pm Post subject: Re: Newbie Question for File Handling |
|
|
Peter Foot already gave you a solid answer (I hesitate to say it's
good, because it isn't quite what you wanted, but that is not Peter's
fault). For more info, I suggest using google
(http://groups.google.com/advanced_group_search) to look up
copy file
in this newsgroup. I just did and got 652 hits. I took a quick look
and think you'll need to do a bit of wading, but even that will help
you think about alternatives.
On Tue, 19 Feb 2008 23:47:00 -0800, wktsang1
wrote:
>I would like to write an application with C# in a Windows CE 5.0 device, but
>I don't know how to read/write data from/to a ASCII file in the device, and
>how to copy such file to a PC when it is connected USB cable.
>
>Would anyone provide some sample codes for reference?
>
>Thank in advance.
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com
|
|
| Back to top |
|
 |
|
|
| Related Topics: | Newbie question... I have a PC application that retrieves data from a set of scientific instruments (voltage levels mainly). This data is stored on the PC. I want to be able to display these levels on a WM device with variable update rates ranging from once every 10 seconds
MS eVC newbie question Hi, I am trying to build my first win ce app. I have installed MS eVC 4.0 and MS Pocket PC 2003 SDK. I have downloaded a demo app called Trackstylus which I am trying to compile, but then I get one error after another. The current one says:
newbie GPS question I have a motorola Q9m smartphone. I have turned on the GPS by going to and choosing Location On for GPS. I am trying to run the Demo GPS program that comes with the Windows Mobile 6 Standard SDK. I'm not sure how
WM5.0 Database Newbie Question: which one to use? Hi, I am new to the WM development and I want to start with WM 5.0. I need to write an app for PPC to PPC One PPC is used as a server and the other is client. So I need to run an database on the server PPC to allow the cli
tabcontrol & menu (newbie question) Hi all, I have used VS2003 to make a pocket PC application. It started off quite small, and I simply had a tabcontrol with four tabpages. That was great, and the indexes were clear, precise and intuitive for the user. Now, however, as the application is m |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|