Accessing local files on device

  • Thread starter Thread starter Duane Roelands
  • Start date Start date
D

Duane Roelands

I'm a rookie, so please forigve what is almost certainly a stupid
question...

I'm writing an application to do some simply disaply of data from an
XML document. I'm familiar with the methods and properties of the XML
DOM, but what I can't seem to find is guidance on accessing the local
file system.

I can copy a file to the emulator (by using file explorer and copying
the file in question from a public share). If I have a file called
"foo.xml", how do specify that filename on the handheld?

I'm guessing that "c:\foo.xml" isn't going to cut it. :)

Thanks in advance.

Duane
 
Its very similar, however there are no drive letters. The root of the system
is "\" and this contains subfolders such as My Documents, Program Files etc.
Another area where it differs is external storage - on a PC this would have
a different drive letter, however on Windows CE this is mounted as a folder
in the root of the system - e.g. "\Storage Card". For example if you placed
an xml file in your My Documents folder on the device the full path would
be:-

\My Documents\Something.xml


Peter
 
Back
Top