[RESOLVED] Mobile Phone storage...
im developing a mobile application using a XML as my database.. my application resides in "\program files\myapp\" folder together with the sample.XML file..
i want to update "\program files\myapp\sample.xml" when my application start.
example.. in my SD memory card i have "Update\sample.xml".. how can i overwrite "\program files\myapp\sample.xml" with the newer xml found in my memory card "Update\sample.xml"..
im using vb.net 2008.. thanks..
Re: Mobile Phone storage...
Hey,
This would be a simple file operation.
Use the File Class:
http://msdn.microsoft.com/en-us/libr...e_members.aspx
First of all delete the old xml file and copy in the new one.
Gary
Re: Mobile Phone storage...
Hi,
is the one on the SD card a direct replacement - if so just use
Imports System.IO
Try
file.delete ("\program files\myapp\sample.bak")
file.move("\program files\myapp\sample.xml","\program files\myapp\sample.bak")
file.move("\Storage Card\Update\sample.xml","\program files\myapp\sample.xml")
Catch
End Try
That what you are looking for or...???
Damn - Gary posted whilst I was checking something :)