Location of file created in Emulator?

  • Thread starter Thread starter RCM
  • Start date Start date
R

RCM

I'm confused about how the emulator works. I have a simple program
that works fine on my device (Smartphone). One of the things the
program does is create a text file with no path information, as in

using ( System.IO.StreamWriter sw =
newSystem.IO.StreamWriter(@"Q123.txt") )

When I run the app in the emulator, no error is generated, but I
cannot find the Q123.txt file. I've even searched my entire desktop
machine for the file and it is not found.

Can you someone straighten me out on how the emulator handles files
created as in the code above?

Thanks,
RM
 
Another piece of information. I think I'm not understanding what the
"emulator" is. I found this reference as part of my searching:

How do I get the "File Explorer" application in the emulator? The
emulator that I am using just has two main menu choices: "Emulator"
(with sub choices Pause, Hard Reset, Soft Reset, and Shutdown), and
"Help". If I choose Help/About, it says "Emulator for Windows CE"
Version 4.1.0.(Build14).

Thanks,
RM
 
If you do not specify the absolute path of the file it will be created in the
root folder of the device. Use the File Explorer in the emulator and in the
drop down list in the upper left corner change to the top most folder. You
should find your file there.

Jarod
 
Since Pocket PC SDK 2002 emulators shipped with the SDK are virtual machines
with their own file system. Hence it is pointless to look for an emilator
file on your own machine hard drive
 
Ignore the two menu items you refer to and move your mouse cursor in the
emulator image itself.

Does the title bar read "Pocket PC 2002"? Click on the windows icon in the
top left corner (next to the rocker), choose Programs and there you'll see
File Explorer.

Cheers
Daniel
 
Back
Top