all groups > dotnet compact framework > august 2006 >
You're in the

dotnet compact framework

group:

Create a file in Pocket PC 2002 mode


Create a file in Pocket PC 2002 mode Roger
8/28/2006 3:50:20 AM
dotnet compact framework:
Hi,

I created a simple Smart Device Application for my PDA to create a file on my pocket p.c.

When I debug this solution with Pocket PC 2002 with Microsoft Visual Studio 2003, the file isn't created.
When I debug this file in a "normal" windows application the file is created in the "debug" folder.
Can anybody tell me where the file is placed with the Pocket PC 2002? I don't get an error. But I also can't access the file.

code looks like this:
using System.IO;

StreamWriter stWr = new StreamWriter("test1.txt");

All help is appriciated!
Re: Create a file in Pocket PC 2002 mode ctacke/
8/28/2006 7:48:13 AM
CE has no notion of a "current directory" so you must give a full path to
files.

-Chris

[quoted text, click to view]

Re: Create a file in Pocket PC 2002 mode Steve B.
8/29/2006 11:55:38 AM
Put you can build yourself the current directory using :

string currentDirectory = System.IO.Path.GetDirectory(
System.Reflection.Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName
);

"<ctacke/>" <ctacke_AT_OpenNETCF_com> a écrit dans le message de news:
OGV8PepyGHA.1268@TK2MSFTNGP02.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button