wktsang1
Wed Feb 20 05:34:02 CST 2008
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" <wktsang1@discussions.microsoft.com> wrote in message
> news:9E893322-9336-4537-92CF-4C9C7D614A9F@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.
>