N
Nicolas
Hi,
How can I convert this following code (from a window application) in a
device application (for PocketPC)
imports System.IO
CONST FILE_NAME1="myXMLfile1.xml"
CONST FILE_NAME2="myXMLfile2.xml"
File.WriteAllBytes(FILE_NAME1, File.ReadAllBytes(FILE_NAME2))
I tried the following but I didn't get very far as I also get a problem into
the xml return string placing an ? in front ------- ?<?xml version="1.0"
encoding="utf-16"?>
'Dim txtRep As String = "<?xml"
Dim fs As New FileStream(FILE_NAME1, FileMode.Open, FileAccess.ReadWrite,
FileShare.None)
Dim binReader As New BinaryReader(fs)
Dim AE As New System.Text.UnicodeEncoding
tmpTXT = AE.GetString(binReader.ReadBytes(fs.Length))
Console.WriteLine(tmpTXT)
binReader.Close()
fs.Close()
Thanks a lot for the help
Nicolas
How can I convert this following code (from a window application) in a
device application (for PocketPC)
imports System.IO
CONST FILE_NAME1="myXMLfile1.xml"
CONST FILE_NAME2="myXMLfile2.xml"
File.WriteAllBytes(FILE_NAME1, File.ReadAllBytes(FILE_NAME2))
I tried the following but I didn't get very far as I also get a problem into
the xml return string placing an ? in front ------- ?<?xml version="1.0"
encoding="utf-16"?>
'Dim txtRep As String = "<?xml"
Dim fs As New FileStream(FILE_NAME1, FileMode.Open, FileAccess.ReadWrite,
FileShare.None)
Dim binReader As New BinaryReader(fs)
Dim AE As New System.Text.UnicodeEncoding
tmpTXT = AE.GetString(binReader.ReadBytes(fs.Length))
Console.WriteLine(tmpTXT)
binReader.Close()
fs.Close()
Thanks a lot for the help
Nicolas